View Full Version : GoToControl


2ippy
11-14-2006, 05:11 AM
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

shuff
11-21-2006, 09:23 AM
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