we receive documents that have several line items. on each line item there could be several pieces. I am using a grid so the user can enter data for each piece in a line item.
I am using an input box that ask's the user to enter the doc# and then moves to that record. what i need to do is,(behind a button) have an inputbox that ask's for the next line item they wish to move to. so i was trying to make the following code work..
rs.Movenext will not work. there could be 100 pieces per line item. they would have to hit the button 100 times before moving to the next record..
sName = Trim(InputBox$("Please Enter Doc# Below.."
) ' & "%"
strRs = "SELECT * FROM table1 WHERE doc# = Left(Text1.Text, Len(Text1.Text) - 2) & sName"""
I want it to strip the last to digits from the doc#
eg..123456-1A
I want it to strip the 1A and the user puts 1B into the inputbox and it jumps to that record..
I cant make the above code work...
Any help would be appreciated
Thanks
dvannoy@onyxes.com
I am using an input box that ask's the user to enter the doc# and then moves to that record. what i need to do is,(behind a button) have an inputbox that ask's for the next line item they wish to move to. so i was trying to make the following code work..
rs.Movenext will not work. there could be 100 pieces per line item. they would have to hit the button 100 times before moving to the next record..
sName = Trim(InputBox$("Please Enter Doc# Below.."
strRs = "SELECT * FROM table1 WHERE doc# = Left(Text1.Text, Len(Text1.Text) - 2) & sName"""
I want it to strip the last to digits from the doc#
eg..123456-1A
I want it to strip the 1A and the user puts 1B into the inputbox and it jumps to that record..
I cant make the above code work...
Any help would be appreciated
Thanks
dvannoy@onyxes.com