Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving data to a table.

Status
Not open for further replies.

19thJIS

Technical User
Aug 22, 2003
4
0
0
US
Greetings all,

I am trying to setup a command button that allows a user to use a combo box to populate four unbound text boxes. The code for this is:

Private Sub cboNameList_AfterUpdate()

Me!cboNameList.Enabled = True
Me!txtAttorney_Number = Me!cboNameList.Column(0)
Me!txtAttorney_Number.Locked = True
Me!txtLast_Name = Me!cboNameList.Column(1)
Me!txtLast_Name.Locked = True
Me!txtFirst_Name = Me!cboNameList.Column(2)
Me!txtFirst_Name.Locked = True
Me!txtMiddle_Initial = Me!cboNameList.Column(3)
Me!txtMiddle_Initial.Locked = True

End Sub

They also fill in some additional information for a panel they are creating.

When I click the save button, it executes an append query for the table. The problem is that the data is not saved. Any suggestions on what I might be doing wrong.

Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top