Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello All,
I want to update multiple rows in ms access project table from different queries, by using vba
my database on sql server 2005.
please could you help me and send me some information for it.

with regards
Posted

1 solution

Here we answer specific questions which members face during programming.

Please try something on your own. Search in Google, find good tutorials and implement them.

If you face any difficulty while coding, feel free to come back here and ask another question with specific issue describing the scenario.

Members will be happy to help you then.

Happy Coding. :)
 
Share this answer
 
Comments
Adam_adam 8-Nov-13 17:22pm    
Thanks.

Update stored procedure For Multiple Rows using from access project for updating multiple rows

I have two tables, Table 1 has three fields (a1,a2,a3) and table 2 has three fields (b1,b2,b3) I want to update table one base on table two when a1=b1 . This is essay in Microsoft access but I want t to do it in Microsoft Access project FORM. Sql server 2005 as a back end.

create
PROCEDURE [dbo].[t12]
@a1 nvarchar(255)
, @a2 nvarchar(255)
, @a3 nvarchar(255)
AS
BEGIN

DECLARE @S1 nvarchar(255)
DECLARE @S2 nvarchar(255)
DECLARE @S3 nvarchar(255)

SELECT @S1 = @a1

SELECT @S2 = @a2

SELECT @S3 = @a3

UPDATE t1
SET a1 = @s1, a2 = @s2, a3 = @s3
WHERE a1 = A1

End

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900