M
MMach via AccessMonster.com
This is more of a syntax question. An excerpt from my query is:
Dim MyQ2 As String
Dim vTest As Long
[vTest]=[Forms]![Main]![Test]
MyQ2 = "UPDATE Materials SET Materials.[Test] = '" & [vTes] & "' WHERE (
(Materials.[Order Number])= 1000)))"
DoCmd.RunSQL MyQ2
I know that what is not working is the syntax for '" & [vTes] & "'. I do not
know the syntax of how to pass a Boolean field to the query. The value for
[vTest] is obviously being brought in from the form [Main] and I want to
include this value in the query.
Any help is GREATLY appreciated!
Dim MyQ2 As String
Dim vTest As Long
[vTest]=[Forms]![Main]![Test]
MyQ2 = "UPDATE Materials SET Materials.[Test] = '" & [vTes] & "' WHERE (
(Materials.[Order Number])= 1000)))"
DoCmd.RunSQL MyQ2
I know that what is not working is the syntax for '" & [vTes] & "'. I do not
know the syntax of how to pass a Boolean field to the query. The value for
[vTest] is obviously being brought in from the form [Main] and I want to
include this value in the query.
Any help is GREATLY appreciated!