Hi all,
Despite having got this to work once (then my daughter turned off pc before I had saved it grrrr), I cannot repeat my earlier (lucky) success.
I have created everything in action script as I'm not yet very proficient in xbasic.
The script displays a dialog box for the user to select a record from Table A and Table B, which are then stored in shared variables. I know these variables are OK because I can display them in a message box.
The script then opens a form for creating a new record in Table C.
I then want to populate some of the fields on the form using data from Tables A & B. I know this is a clumsy way of doing things, but I am stuck with the table structure from an existing Access database (in use for the past 10 years).
If I try to update a field value on the form with
lookup("Table_A", "RecordID = var>Variable_A","Required_Field")
I get an error (though I could swear it worked before.)
lookup("Table_A", "RecordID = 'Actual_Variable_Value'","Required_Field") gives the required result, so I know the expression is OK.
Obviously the syntax is wrong when trying to use the variable as the value for filtering.
Any help would be REALLY appreciated, as I have been stuck on this for 8 hours now, and it's 2.30 in the morning.
Despite having got this to work once (then my daughter turned off pc before I had saved it grrrr), I cannot repeat my earlier (lucky) success.
I have created everything in action script as I'm not yet very proficient in xbasic.
The script displays a dialog box for the user to select a record from Table A and Table B, which are then stored in shared variables. I know these variables are OK because I can display them in a message box.
The script then opens a form for creating a new record in Table C.
I then want to populate some of the fields on the form using data from Tables A & B. I know this is a clumsy way of doing things, but I am stuck with the table structure from an existing Access database (in use for the past 10 years).
If I try to update a field value on the form with
lookup("Table_A", "RecordID = var>Variable_A","Required_Field")
I get an error (though I could swear it worked before.)
lookup("Table_A", "RecordID = 'Actual_Variable_Value'","Required_Field") gives the required result, so I know the expression is OK.
Obviously the syntax is wrong when trying to use the variable as the value for filtering.
Any help would be REALLY appreciated, as I have been stuck on this for 8 hours now, and it's 2.30 in the morning.
Comment