Hi,
I'm getting the following error message "Data type mismatch in critera expression." when running a macro that opens a form and goes to the record clicked on and if "new" is clicked, then it goes to a new record.
This only started happening when I changed "Asset_No" from being a 'Number' field to a 'Text' field as I needed to use 0's in front. When It is set as a 'Number' field, it works fine.
I have attatched a screenshot of the Macro to this thread.
How can I go around this? Tried a few things but I'm stuck.
Will appreciate all the help I can get.
Thanks!
I'm getting the following error message "Data type mismatch in critera expression." when running a macro that opens a form and goes to the record clicked on and if "new" is clicked, then it goes to a new record.
Macro said:Macro Name: frm_assets : txtOpen : OnClick : Embedded Macro
Condition: True
Action Name: OpenForm
Arguments: frm_assetdetails, Form, , [Asset_No]=04444, , Dialog
Error Number: 2950
This only started happening when I changed "Asset_No" from being a 'Number' field to a 'Text' field as I needed to use 0's in front. When It is set as a 'Number' field, it works fine.
I have attatched a screenshot of the Macro to this thread.
How can I go around this? Tried a few things but I'm stuck.
Will appreciate all the help I can get.
Thanks!