Hi,
I am working in Access 2007 on an Access database created by an earlier version (presumably 2003). I am an extreme newbie to Access/VBA. This database was created by another company and given to us to modify as needed. So I am trying to figure out what it does and why.
It opens with a User Identification form which only contains a label, combobox which says 'Unbound' and Ok and Cancel buttons.
The Row source for the combobox is a select statement:
When I look at the VB behind the Ok button:
I can't figure out: Where the stLinkCriteria is filled?
I hope I have given you enough information to answer my question.
TIA
~RLG
I am working in Access 2007 on an Access database created by an earlier version (presumably 2003). I am an extreme newbie to Access/VBA. This database was created by another company and given to us to modify as needed. So I am trying to figure out what it does and why.
It opens with a User Identification form which only contains a label, combobox which says 'Unbound' and Ok and Cancel buttons.
The Row source for the combobox is a select statement:
Code:
SELECT Users.ID,
Users.FirstName,
Users.LastName
FROM Users
ORDER BY Users.[FirstName], Users.[LastName];
When I look at the VB behind the Ok button:
Code:
Private Sub cmdOpen_Click()
On Error GoTo Err_cmdOpen_Click
Dim stLinkCriteria As String
DoCmd.OpenForm "Menu", , , stLinkCriteria
DoCmd.Close acForm, "User Identification", acSaveNo
Exit_cmdOpen_Click:
Exit Sub
Err_cmdOpen_Click:
MsgBox Err.Description
Resume Exit_cmdOpen_Click
End Sub
I can't figure out: Where the stLinkCriteria is filled?
I hope I have given you enough information to answer my question.
TIA
~RLG