Requery without losing position

J

Jay Cook

Hi, I have a form with a subform on it, when i click in the first field (on
Enter on the contiunous subform) I need a field on the main page to requery.
the problem that i am having is whe I requery i lose the position my cursor
is in.

Is there and way to just requery the field or am I going about this wrong

Thanks in advanced

Jay
 
J

Jay Cook

Hi Roger

that does requery the control perfectly, but it still make my cursor go to
the top record in the subform

thanks

Jay
 
C

Chris Reveille

Try

Me.refresh

Chris
-----Original Message-----
Hi Roger

that does requery the control perfectly, but it still make my cursor go to
the top record in the subform

thanks

Jay


.
 
J

Jay Cook

Thanks for the help, it refreshes the sub form but I need the textbox on the
main form to refesh

thanks again

Jay
 
J

Jay Cook

I think I almost got it but the go to record doesn't work, any suggestions?

Thanks


Dim crId As Integer
crId = Me.CurrentRecord
Forms!editTripFile!List35.Requery
Forms![editTripFile]!TripLegs.Form!TripLeg.SetFocus
DoCmd.GoToRecord , , acGoTo, crId
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top