Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple SQL generating an error (3075) 1

Status
Not open for further replies.

braidj

Programmer
Oct 2, 2001
8
GB
Got a simple piece of SQL to run from VBA

DoCmd.RunSQL ("UPDATE tblAccountDetails " _
& "SET Flip_SFA = 'Y' " _
& "FROM tblAccountDetails,tblFlipOnBalance " _
& "WHERE tblAccountDetails.Original_SFA = tblFlipOnBalance.SFA_Category")

The sql runs in via other tools succesfully but ACCESS does n't like it.
I know its something to do with syntax on the fields, any one got any ideas as its really frustrating.

TIA

Jason
 
A trick I use, seems strange but works most of the time, is to assign the string to a string variable and then run the variable through the command...

This will help you to have a better view of your string. Another thing, try to use the double "" instead of the single '

That might also help. I presume that the names of the fields are correct.

HTH
Alcar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top