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

Form Flow 2

Status
Not open for further replies.

drewcp

Programmer
Jul 31, 2008
30
US
I have a form for data entry

The links below show the same form in 'form view' and in 'design view'



what my question is, is there a way to set up a continuous flow between the subforms so that you are not having to click into the next subform to continue data entry? instead of it going on the next record? especially since i removed the record selectors?

I have tried different things like before update on the form, and lost focus on the last field, and i tell it to go to the first record before it switches to the next subform, and it works but the odd thing is that sometimes it doesn't but nothing has changed. and it has started causing other problems as i have added more coding to the forms.

does anybody have any ideas for me? is this even accomplishable?
 
Have you tried setting the Cycle for the subforms to Current Record?
 
thank you so much, that solved a lot of my problems with this.

do you know of an easier way to transition from subform to subform though? because there has got to be an easier way

here's the code that i am currently using to transition with
(it is in the lost focus of my last field on the subform)

Code:
Private Sub VISIT_DATE_LostFocus()
    DoCmd.Save
    Me.Parent![UTADBA_PARCEL].SetFocus
    DoCmd.GoToControl "Combo11"
End Sub
 
I'd replace this:
DoCmd.Save
with this
Me.dirty = False

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Not that I can think of. You do not need Save, that will happen automatically. GoToControl is deprecated by MS. How about:

Code:
Private Sub VISIT_DATE_LostFocus()
    Me.Parent![UTADBA_PARCEL].SetFocus
    Me.Parent![UTADBA_PARCEL].Form.Combo11.SetFocus
End Sub
 
thank you both, i took both of your suggestions and it is working great! thank you very much for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top