Hello,
I am very new to the SQL word and am trying to find out what is wrong with this code. The subquery works on its own but when i put it within this insert query it does not seem to work. Any suggestions?
ThanksINSERT INTO t_Audit ( EditDate, [User], SourceTable, FirstName, LastName, ID, DOB ) VALUES (now(), 'Test2', 'Test3', ( Select t_Dustin.FirstName From t_Dustin Where (( t_Dustin.FirstName like "Dustin")) ), 'Test5', '1156', '11/8/1986')
What is the error?
I think you may have to surround date values with pound signs (#yourdate#).
Is your code running too slowly?
Does your workbook or database have a bunch of duplicate pieces of data?
Have a look at this article to learn the best ways to set up your projects.
It will save both time and effort in the long run!
Dave
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks