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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.Requery

Status
Not open for further replies.

Elamranii

MIS
Feb 1, 2005
57
US
I am getting this error message on this code:

Compile error
invalid or unqualified reference

It does not like the word: .Requery
Can anyone help

Thanks in advance

Private Sub Form_Timer()
'update the data so multiple users get latest data

Dim CurrRecord As Variant
CurrRecord = Me.CurrentRecord

'MsgBox (CurrRecord)

.Requery
DoCmd.GoToRecord acDataForm, "frmMAIN FORM", acGoTo, CurrRecord

End Sub

 
Hi!

Use Me.Requery

hth


Jeff Bridgham
Purdue University
Graduate School
Data Analyst
 
problem solved. Thanks.
If you do not mind me asking, what does requery do?
 
Hi!

It reruns the record source of the form in case there has been any changes that the user may need to see.



Jeff Bridgham
Purdue University
Graduate School
Data Analyst
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top