Hey guys I'm working on one of my first macros. I am using this macro to open up another form and display a specific record. The record to go to is determined by a combo box.
I am using the open form command with the form name, and then the where clause to open the specific record within that form. I can get the form to open, but I cannot seem to get the where clause to work and open a specific record.
Here is what I have...
[RecordID]=[Combo10].[Column](1)
With this build event I get "Undefined function [Combo10].[Column] in Expression"
I don't understand why this is. I know that =[Combo10].[Column](1) works because if I use the macro to open a dialog box and set the contents as ="[Combo10].[Column](1)" I get the desired number in the dialog.
Also, I know that the where clause with "[RecordID]=" works because if I set the where clause to "[RecordID]=5" it takes me to the desired record.
On a separate note, I was wondering if there was a way to switch tabs within a navigation form through the macro. Right now I am opening a new form, but this form is actually within a different tab of the main navigation form.
I am using the open form command with the form name, and then the where clause to open the specific record within that form. I can get the form to open, but I cannot seem to get the where clause to work and open a specific record.
Here is what I have...
[RecordID]=[Combo10].[Column](1)
With this build event I get "Undefined function [Combo10].[Column] in Expression"
I don't understand why this is. I know that =[Combo10].[Column](1) works because if I use the macro to open a dialog box and set the contents as ="[Combo10].[Column](1)" I get the desired number in the dialog.
Also, I know that the where clause with "[RecordID]=" works because if I set the where clause to "[RecordID]=5" it takes me to the desired record.
On a separate note, I was wondering if there was a way to switch tabs within a navigation form through the macro. Right now I am opening a new form, but this form is actually within a different tab of the main navigation form.