Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Update table from form.

$
0
0
Hey almighty VBA gods.

I'm trying to run an update query on a table from a form and just can't seem to get the syntax right.

Code:

DoCmd****nSQL "UPDATE tablename SET tablefield = [Forms]![formname]![formtxtobject] WHERE tablefield = [Forms]![formname]![formtxtobject]"
I'm sure I'm missing about 20 "s or so. I have no variables declared and this statement is run on a buttons Click event.

To be honest SQL statements wrap my brain in knots :(

Any help out there?

Viewing all articles
Browse latest Browse all 13329

Trending Articles