I have four tables with a common key field named SerialNo.
This is the first field in three of the tables and is the second field in one and in this one I have created a secondary index on this field.
If I open the form for table #1 and move to a particular record, I want to read the actual current value of the SerialNo field, store it as a variable and carry it over to open a form of say table #2, search for that value and display that form with all the fields for that particular SerialNo.
The end result would be to switch, at the press of buttons on the forms, between each of the four tables and display the same Serial No and all the its data each time.
I have linked the tables together in the Data Model and have tried using fieldValue and currRecord but they seem only to return True and False.
I have been able to switch between the table forms easily and have managed to store a variable using…
tc Tcursor
fldVAL AnyType
However when opening a Tcursor this always returns the value of the FIRST record SerialNo field.
Can anyone help please?
This is the first field in three of the tables and is the second field in one and in this one I have created a secondary index on this field.
If I open the form for table #1 and move to a particular record, I want to read the actual current value of the SerialNo field, store it as a variable and carry it over to open a form of say table #2, search for that value and display that form with all the fields for that particular SerialNo.
The end result would be to switch, at the press of buttons on the forms, between each of the four tables and display the same Serial No and all the its data each time.
I have linked the tables together in the Data Model and have tried using fieldValue and currRecord but they seem only to return True and False.
I have been able to switch between the table forms easily and have managed to store a variable using…
tc Tcursor
fldVAL AnyType
However when opening a Tcursor this always returns the value of the FIRST record SerialNo field.
Can anyone help please?