Want to insert a record from a recordset into and existing empty ACCESS table. The following code is inside some loops, but the code bombs on the docmd.RunSQL addata with this error:
Invalid use of '.','!',or (). in query expression
BallsRs.Fields(0).Value.
Just testing to get the insert running so only inserting one field for now-the first column in the record set.
Dim addata As Variant
addata = "INSERT INTO BallsTableTest(Account_Number) Select BallsRs.fields(0).value as Account_Number"
DoCmd.SetWarnings False
docmd.RunSQL addata
DoCmd.SetWarnings True
Thanks in advance
jpl