V
vandy
Hi,
I have a form which contains list of customers unique with the ID feild.
I have set the CustomerID to hyperlink and when the user clicks on that it
opens up the selected detail of the customer in a dialog window were the user
can change the values.
Macro used.
Action: open form
Argument: Customer Details
View: form
Where Condition: ="[ID]=" & Nz([ID],0)
Window Mode: Dialog
condition: Not IsNull([ID])
Action: SetTempVar
Arguments: CurrentID, [ID]
condition: IsNull([ID])
Action: SetTempVar
Arguments: CurrentID, Nz(DMax("[ID]",[Form].[RecordSource]),0)
Action:
requery
SearchForRecord
Arguments: , , First, ="[ID]=" & [TempVars]![CurrentID]
Action: RemoveTempVar
Arguments: CurrentID
The macro works but when i run the macro it gives the msg
The object doesn't contain the Automation object 'form'.
how can i correct this.
I have a form which contains list of customers unique with the ID feild.
I have set the CustomerID to hyperlink and when the user clicks on that it
opens up the selected detail of the customer in a dialog window were the user
can change the values.
Macro used.
Action: open form
Argument: Customer Details
View: form
Where Condition: ="[ID]=" & Nz([ID],0)
Window Mode: Dialog
condition: Not IsNull([ID])
Action: SetTempVar
Arguments: CurrentID, [ID]
condition: IsNull([ID])
Action: SetTempVar
Arguments: CurrentID, Nz(DMax("[ID]",[Form].[RecordSource]),0)
Action:
requery
SearchForRecord
Arguments: , , First, ="[ID]=" & [TempVars]![CurrentID]
Action: RemoveTempVar
Arguments: CurrentID
The macro works but when i run the macro it gives the msg
The object doesn't contain the Automation object 'form'.
how can i correct this.