Q
quasimodo
Hi,
How do I update a table from a combobox?
I have a login form with a combo box (cboName) and a text box for password.
if a user selects a name from that combo, I want to update a table with that
name.
There are 2 tables:
Employee ( id_employee - autonumber
firstname - text
passw - text)
Orders (order_id.......
........
employee -----> from Employee table)
on login form I have text box, a combo box and a button with this:
Private Sub btnGo_Click()
If Me.txtPass.Value = DLookup ("passw", "Employee", "[id_employee]="
&Me.cboEmployee.Value) Then
strName = Me.cboEmployee.Column (1)
DoCmd.OpenForm "myform"
End If
End Sub
How do I update [employee] from Orders table with strName ?
Any help would be appreciated !
How do I update a table from a combobox?
I have a login form with a combo box (cboName) and a text box for password.
if a user selects a name from that combo, I want to update a table with that
name.
There are 2 tables:
Employee ( id_employee - autonumber
firstname - text
passw - text)
Orders (order_id.......
........
employee -----> from Employee table)
on login form I have text box, a combo box and a button with this:
Private Sub btnGo_Click()
If Me.txtPass.Value = DLookup ("passw", "Employee", "[id_employee]="
&Me.cboEmployee.Value) Then
strName = Me.cboEmployee.Column (1)
DoCmd.OpenForm "myform"
End If
End Sub
How do I update [employee] from Orders table with strName ?
Any help would be appreciated !