C
Chris
I am trying to open a form and assign a record source and
then filter the record source. I keep getting a "From"
error and a Can't find form error when I run the following
code.
Sub AA_Click()
Dim F As Form
Dim D As Database
Set F = Forms![frmEmp]
DoCmd.OpenForm "frmEmp", acNormal
F.RecordSource = "Select [Application_User_Name] from
tblEmployees" & "Where [Section_ID] = 'AA'"
F.Requery
End Sub
Any help is appreciated.
-Chris
then filter the record source. I keep getting a "From"
error and a Can't find form error when I run the following
code.
Sub AA_Click()
Dim F As Form
Dim D As Database
Set F = Forms![frmEmp]
DoCmd.OpenForm "frmEmp", acNormal
F.RecordSource = "Select [Application_User_Name] from
tblEmployees" & "Where [Section_ID] = 'AA'"
F.Requery
End Sub
Any help is appreciated.
-Chris