J
jimmyx18
I have a table, query, and for created. I want to be able to create,
view, and edit records. I can currently create and view records
successfuly but am having trouble editing them. I use the following
code for my load button to load the data that was previously entered
on the table:
Private Sub cmbLoad_Click()
txtid = [cboMMCT].[Column](1)
txtsln = [cboMMCT].[Column](2)
End Sub
So to save the data in a text box back to the table I thought I could
just reverse the commands:
Private Sub cmbSave_Click()
[cboMMCT].[Column](1) = txtid
[cboMMCT].[Column](2) = txtsln
End Sub
When I do this, I get an error about references. Please let me know
the correct way to save an unbound box back to a specific record on a
table.
Thanks,
Jared
view, and edit records. I can currently create and view records
successfuly but am having trouble editing them. I use the following
code for my load button to load the data that was previously entered
on the table:
Private Sub cmbLoad_Click()
txtid = [cboMMCT].[Column](1)
txtsln = [cboMMCT].[Column](2)
End Sub
So to save the data in a text box back to the table I thought I could
just reverse the commands:
Private Sub cmbSave_Click()
[cboMMCT].[Column](1) = txtid
[cboMMCT].[Column](2) = txtsln
End Sub
When I do this, I get an error about references. Please let me know
the correct way to save an unbound box back to a specific record on a
table.
Thanks,
Jared