G
Giordano
I have a form (frmSchools) with a command button (cmdFind) on it which
when clicked opens up a dialog box (frmLookUpSchool - a 3 column
datasheet with all the records from the main table listed) which allows
me to quickly scroll through the records, select the one I want. I
highlight the desired row, press OK, the dialog box closes, and I find
myself positioned at the record I selected.
Here is the simple code I am using:
Private Sub cmdFind_Click()
On Error GoTo Err_cmdFind_Click
Dim stDocname As String
Dim stLinkCriteria As String
stDocname = "frmSchools"
stLinkCriteria = "[fldSchoolName]=" & "'" & Me![fldSchoolName] &
"'"
DoCmd.OpenForm stDocname, , , stLinkCriteria
DoCmd.Close acForm, "frmLookUpSchool"
The problem is that the main form is being filtered with only the one
record showing. I want all the records to be available. How do I
achieve this?
when clicked opens up a dialog box (frmLookUpSchool - a 3 column
datasheet with all the records from the main table listed) which allows
me to quickly scroll through the records, select the one I want. I
highlight the desired row, press OK, the dialog box closes, and I find
myself positioned at the record I selected.
Here is the simple code I am using:
Private Sub cmdFind_Click()
On Error GoTo Err_cmdFind_Click
Dim stDocname As String
Dim stLinkCriteria As String
stDocname = "frmSchools"
stLinkCriteria = "[fldSchoolName]=" & "'" & Me![fldSchoolName] &
"'"
DoCmd.OpenForm stDocname, , , stLinkCriteria
DoCmd.Close acForm, "frmLookUpSchool"
The problem is that the main form is being filtered with only the one
record showing. I want all the records to be available. How do I
achieve this?