R
RedHeadedMonster via AccessMonster.com
I have the following statement in my code:
Dim sqlUpdateOracleQty As String
Dim myswID As Long
myswID = Me![swID]
DoCmd.SetWarnings (0)
sqlUpdateOracleQty = "UPDATE MAINsw SET MAINsw.[swQtyOnHand] = -1 WHERE
MAINsw.[swID] = myswID "
DoCmd.RunSQL sqlUpdateOracleQty
When the code runs I get the following:
A parameter box pops up and asks for the value of myswID.
I've changed a hundered things (or it feels like it) and I still get the same
thing.
WTH am I doing wrong.
Thanx!
RHM
Dim sqlUpdateOracleQty As String
Dim myswID As Long
myswID = Me![swID]
DoCmd.SetWarnings (0)
sqlUpdateOracleQty = "UPDATE MAINsw SET MAINsw.[swQtyOnHand] = -1 WHERE
MAINsw.[swID] = myswID "
DoCmd.RunSQL sqlUpdateOracleQty
When the code runs I get the following:
A parameter box pops up and asks for the value of myswID.
I've changed a hundered things (or it feels like it) and I still get the same
thing.
WTH am I doing wrong.
Thanx!
RHM