GoToControl

2ippy

Newbie Here, Be gentle.
Local time
Today, 18:16
Joined
Nov 10, 2006
Messages
78
I have a button in a form which activates a macro that goes to a new record on click

CreateNewContact : On Click >> GoToRecord

I added a line.

CreateNewContact : On Click >> GoToControl

But this is redundent. I would like to know, how do I go to page 0 where the start data is to be entered?

Control is called TabCtl58 and the page is 0
 
Response to: GoToControl

If I understand your description, you want to click on that button and then, be in a data entry/add a record mode.

I think I would elect to let that button and it's associated macro close the form, then reopen it in "Add Record" data mode. Set your macro something like this:

closeform (close the form first)
openform [formname] (reopen the form, but set the Data Mode argument at the bottom of the window to "Add." This will make the form reappear, but in "add a record" mode.

If you are familiar, you may also want to present a "Save" button on the form when opened in Add Record mode. That button can not only save the record, but also close the form out of Add Record mode, then reopen it in view mode, or take some other action to keep the experience flowing.

Hope that helps!

SLH
 

Users who are viewing this thread

Back
Top Bottom