M
Maarkr
Mistake #1 Thought I'd improve on this process: A user goes to select their
name from a combo, but it's not in the list, so I have a button that opens a
User entry pop-up form to add their name. They close the entry form and now
must select their name from the combo.
I want to dump the user entry form name into the combo when they close the
user entry form so they don't have to select it. My problem is loading the
new ID into the combo so the query can run from the combo data. The row
source bound column is MbrID, with the second column being LFName. I've
tried different approaches, including looking up the MbrID but the query
still couldn't find it. If I lookup the MbrID, it loads it as LFName.
Here's the latest which doesn't work:
Private Sub CmdReturn_Click()
Dim stUser As String
stUser = Me.LFName 'from user entry form
DoCmd.Close acForm, "name entry form"
Forms!TrainingMain!Combo33.Requery
Forms!TrainingMain!Combo33 = stUser
'this puts the user name in the combo, but I also need the combo to load
the MbrID
End Sub
name from a combo, but it's not in the list, so I have a button that opens a
User entry pop-up form to add their name. They close the entry form and now
must select their name from the combo.
I want to dump the user entry form name into the combo when they close the
user entry form so they don't have to select it. My problem is loading the
new ID into the combo so the query can run from the combo data. The row
source bound column is MbrID, with the second column being LFName. I've
tried different approaches, including looking up the MbrID but the query
still couldn't find it. If I lookup the MbrID, it loads it as LFName.
Here's the latest which doesn't work:
Private Sub CmdReturn_Click()
Dim stUser As String
stUser = Me.LFName 'from user entry form
DoCmd.Close acForm, "name entry form"
Forms!TrainingMain!Combo33.Requery
Forms!TrainingMain!Combo33 = stUser
'this puts the user name in the combo, but I also need the combo to load
the MbrID
End Sub