I am trying to use the FindFirst method in the standard module,referring to two open forms. Can I do that, and how do I reference the controls?
This is what I have:
Dim rs As Object
Set rs = Form_frmCompanyInfo2.Recordset.Clone
rs.FindFirst ("CompanyID=" & Form_frmqryCompanyDBA![CompanyID])
If Not rs.EOF Then Form_frmCompanyInfo2.Bookmark = rs.Bookmark
This is what I get:
Run-time error '3070':
The Microsoft Jet database does not recognize 'CompanyID' as a valid field name or expression.
2007-05-28
11:09:58
·
4 answers
·
asked by
Sugar
1
in
Computers & Internet
➔ Programming & Design
Yahoo Answers is cutting off some of my lines. Can anyone still make a suggestion based on the code that is showing up?
2007-05-28
11:13:23 ·
update #1