Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recordsetclone error in listbox

Status
Not open for further replies.

marjerie

MIS
Jul 21, 2006
1
US
I have this statements if i run it error said
MS Access can't find the form!TimeCards

Private Sub cmdFind_Click()

Dim rst As DAO.Recordset

Set rst = Forms!fmrTimeCards.RecordsetClone

rst.FindFirst "TimeCardID = " & "'" & lstFind & "'"

Form!fmrTimeCards.Bookmark = rst.Bookmark

DoCmd.Close acForm, "frmFindTimeCards"

End Sub


I checked so many time for my form and it really same name
Hope can someone help me for this its make crazy..what's wrong on my statements

thank u in advance

 
Use the Form[!]s[/!] collection.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
How are ya marjerie . . .

In your post origination you say:
marjerie said:
[blue]I checked so many time for my form and it really same name[/blue]
. . . yet you have:
marjerie said:
[blue]MS Access can't find the form![purple]TimeCards[/purple]
Set rst = Forms![purple]fmrTimeCards[/purple].RecordsetClone
DoCmd.Close acForm, "[purple]frmFindTimeCards[/purple]"[/blue]
Thats 3 different names! . . .

Calvin.gif
See Ya! . . . . . .

Be sure to see FAQ219-2884:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top