HDfatboy03
Board Regular
- Joined
- May 23, 2010
- Messages
- 62
Hello ... needing some help with a variable, I want to be able to have data copied to a TABLE to a specific row based on user input "Textbox1". So if the user enters "2" then the below data is copied to row 2 and if they enter "110" then the data is copied to row 110.
<START CODE:>
Textbox1 = ?
'copy the data to the database
ws.Cells(?, "A").Value = Me.txtDate.Value
ws.Cells(?, "B").Value = Me.cboCategory.Value
ws.Cells(?, "C").Value = Me.txtBusn.Value
ws.Cells(?, "D").Value = Me.txtVndr.Value
ws.Cells(?, "E").Value = Me.txtAdd1.Value
ws.Cells(?, "F").Value = Me.txtAdd2.Value
ws.Cells(?, "G").Value = Me.txtCity.Value
ws.Cells(?, "H").Value = Me.txtState.Value
ws.Cells(?, "I").Value = Me.txtZip.Value
End Sub
<END CODE:>
Thanks in advance any help or suggestions will be greatly appreciated.
HDfatboy03
<START CODE:>
Textbox1 = ?
'copy the data to the database
ws.Cells(?, "A").Value = Me.txtDate.Value
ws.Cells(?, "B").Value = Me.cboCategory.Value
ws.Cells(?, "C").Value = Me.txtBusn.Value
ws.Cells(?, "D").Value = Me.txtVndr.Value
ws.Cells(?, "E").Value = Me.txtAdd1.Value
ws.Cells(?, "F").Value = Me.txtAdd2.Value
ws.Cells(?, "G").Value = Me.txtCity.Value
ws.Cells(?, "H").Value = Me.txtState.Value
ws.Cells(?, "I").Value = Me.txtZip.Value
End Sub
<END CODE:>
Thanks in advance any help or suggestions will be greatly appreciated.
HDfatboy03