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

Problems with a the GoToRecord Cmd

Status
Not open for further replies.

jmc014

Technical User
Nov 24, 2007
80
0
0
ES
Hi,

I'm working on a form that is conditioned to a read only user property. My question: Is it possibe to apply the GoToRecord Cmd to a subform which is disabled?
Here's what I have been playing around with:

If Forms!MainScreen!Read_Only = True Then

Forms!MainScreen!MySubform.Enabled=True
Forms!MainScreen!MySubform.Setfocus
DoCmd.GoToRecord acDataForm, Forms!MainScreen!MySubform, acNext
Forms!MainScreen!Command1.Setfocus
Forms!MainScreen!MySubform.Enabled=False

Else

<Rest of my Code>
End if


For some reason the acNext command does not want to work and the subform remains enabled after execution.
Any ideas out there?

jmc014
 
Without really understanding your purpose, this might help...
Use a wizard to make a combobox that filters by selection. Note the Use of bookmark and recordsetclone and investigate in help. That navigation method might help.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top