G
Guest
Could someone help me identify my error in the following SQL statement:
Public Sub DailyRun()
For x = 1 To 2
DoCmd.RunSQL "SELECT [ITNBR] into tbl1 FROM [SHANE_TRANSDATA] WHERE [UPDDT]=
X;"
Next x
End Sub
I am wanting to output ITNBR (item #) where the UPDDT (date) equals the
variable x. Please help. Thanks! Feel free to add comments, if you like.
Public Sub DailyRun()
For x = 1 To 2
DoCmd.RunSQL "SELECT [ITNBR] into tbl1 FROM [SHANE_TRANSDATA] WHERE [UPDDT]=
X;"
Next x
End Sub
I am wanting to output ITNBR (item #) where the UPDDT (date) equals the
variable x. Please help. Thanks! Feel free to add comments, if you like.