I have a table that has fields: ID NO (Autonumber), A(checkbox), B(checkbox) and C(checkbox), with many hundreds of records.
I have a report based on a query for this table, that selects a particular record based on the user entering the desired ID NO.
In my VB code for this report, i want to analyse the data in the record selected by the ID NO and add text to a string based on logic tests of this data.
I then want to display this text onscreen in a textbox, probably by defining a function as the boxes controlsource and setting the function equal to my string.
The finished product would then run as follows: The report would open, the user would be asked to enter ID NO. Say the user enters "3" and in the record with ID NO "3", boxes A&C are ticked. The text "A and C" is displayed in the report.
Is this possible? I have been able to get this to work in a simple test database with one record, but have been unable to select a record in a larger database based on the entry of an ID NO in the report.
Any help with this would be fantastic,
Cheers,
Ben
I have a report based on a query for this table, that selects a particular record based on the user entering the desired ID NO.
In my VB code for this report, i want to analyse the data in the record selected by the ID NO and add text to a string based on logic tests of this data.
I then want to display this text onscreen in a textbox, probably by defining a function as the boxes controlsource and setting the function equal to my string.
The finished product would then run as follows: The report would open, the user would be asked to enter ID NO. Say the user enters "3" and in the record with ID NO "3", boxes A&C are ticked. The text "A and C" is displayed in the report.
Is this possible? I have been able to get this to work in a simple test database with one record, but have been unable to select a record in a larger database based on the entry of an ID NO in the report.
Any help with this would be fantastic,
Cheers,
Ben