Gates Is Antichrist
Well-known Member
- Joined
- Aug 15, 2002
- Messages
- 1,961
I simply want to set a field in tbl1 to one in tbl2. Would someone please evaluate/test the following?
sSql = "UPDATE tbl1 SET [ShortDesc] = [tbl2].[FL8] from tbl1, tbl2;"
DoCmd.RunSQL sSql
FWIW, there is always exactly one record in tbl1, and exactly one record in tbl2. ("IF" logic will control whether FL8 or another field from tbl2 is today's lucky winner)
Extra credit question: supply the name of Microsoft's d***less P.O.S who devised the insultingly useless dialog 'Syntax error (missing operator) in query expression...'
sSql = "UPDATE tbl1 SET [ShortDesc] = [tbl2].[FL8] from tbl1, tbl2;"
DoCmd.RunSQL sSql
FWIW, there is always exactly one record in tbl1, and exactly one record in tbl2. ("IF" logic will control whether FL8 or another field from tbl2 is today's lucky winner)
Extra credit question: supply the name of Microsoft's d***less P.O.S who devised the insultingly useless dialog 'Syntax error (missing operator) in query expression...'