A
AHopper
On a form "OmegaTenForm" I have a combo box "NewNumber"
that has nine columns. The nineth column is "GoodUnique"
(the auto number for records)and is set to 0 width. I want
to change a record in table "OmegaTenBatch"
field "NewNumberUsed" (boolean) to True (-1)using the
criteria "GoodUnique"
Dim SQL As String
DoCmd.SetWarnings False
SQL = "UPDATE OmegaTenBatch SET
OmegaTenBatch.NewNumberUsed = -1 " & "WHERE
(OmegaTenBatch.GoodUnique =" & Me.NewNumber.Column(9)
& ");"
DoCmd.RunSQL SQL
DoCmd.SetWarnings True
When I use the above I get an error message inidcating I
have an extra bracket.
Thanks in advance for your help.
Allan
that has nine columns. The nineth column is "GoodUnique"
(the auto number for records)and is set to 0 width. I want
to change a record in table "OmegaTenBatch"
field "NewNumberUsed" (boolean) to True (-1)using the
criteria "GoodUnique"
Dim SQL As String
DoCmd.SetWarnings False
SQL = "UPDATE OmegaTenBatch SET
OmegaTenBatch.NewNumberUsed = -1 " & "WHERE
(OmegaTenBatch.GoodUnique =" & Me.NewNumber.Column(9)
& ");"
DoCmd.RunSQL SQL
DoCmd.SetWarnings True
When I use the above I get an error message inidcating I
have an extra bracket.
Thanks in advance for your help.
Allan