G
Guest
Thank you in advance for the help.
Here's my situation. I would like to update a a table based on the user
input on a form. A user would select the ListNumber from a dropdown "cboList"
and the range of boxes "cboBoxNumberFrom" and "cboBoxNumberTo". A user will
also type the the beginning LocationNumber "txtLocation". What I want to do
is to insert the locationNumber incrementing it by one as it moves to the
next record. This is what I have and it's not working properly. Please
help. Thanks!
Counter = me.txtLocation
For intBoxNumber = Me.cboBoxNumberFrom To Me.cboBoxNumberTo
SQL = (" Update tblBox " & _
"SET LocationNumber = ' " & Counter & " ' " & _
"Where tblBox.ListNumber = Forms.frmLocationNumber.cboListNumber
")
Counter = Counter + 1
DoCmd.RunSQL SQL
Next intBoxNumber
Here's my situation. I would like to update a a table based on the user
input on a form. A user would select the ListNumber from a dropdown "cboList"
and the range of boxes "cboBoxNumberFrom" and "cboBoxNumberTo". A user will
also type the the beginning LocationNumber "txtLocation". What I want to do
is to insert the locationNumber incrementing it by one as it moves to the
next record. This is what I have and it's not working properly. Please
help. Thanks!
Counter = me.txtLocation
For intBoxNumber = Me.cboBoxNumberFrom To Me.cboBoxNumberTo
SQL = (" Update tblBox " & _
"SET LocationNumber = ' " & Counter & " ' " & _
"Where tblBox.ListNumber = Forms.frmLocationNumber.cboListNumber
")
Counter = Counter + 1
DoCmd.RunSQL SQL
Next intBoxNumber