G
Guest
I have a problem with Run-time error number 2342.
I think my sqlCmd statement is correct, but I have on idea, how can I solve
this problem whe running application with statement below:
Dim tBatchNum As String
tBatchNum = Me.Batch_Number
sqlCmd = "SELECT [Batch Number], Items " _
& "FROM Table1 " _
& "WHERE [Batch Number]= '" & tBatchNum & "';"
DoCmd.RunSQL sqlCmd
And then I would like to show it on TextBox. I give the name of textbox is
Items.
Then
Items.Value = Items
Anyways, how can I solve the problem that occur when running this application.
Art
I think my sqlCmd statement is correct, but I have on idea, how can I solve
this problem whe running application with statement below:
Dim tBatchNum As String
tBatchNum = Me.Batch_Number
sqlCmd = "SELECT [Batch Number], Items " _
& "FROM Table1 " _
& "WHERE [Batch Number]= '" & tBatchNum & "';"
DoCmd.RunSQL sqlCmd
And then I would like to show it on TextBox. I give the name of textbox is
Items.
Then
Items.Value = Items
Anyways, how can I solve the problem that occur when running this application.
Art