viperpurple
Registered User.
- Local time
- Today, 02:39
- Joined
- Oct 19, 2010
- Messages
- 11
Hey,
I get a 'type mismatch' error when i run this code, the field 'equipment_checked' is of type 'memo' and i understand that the rowsource can only hold 2048 characters but i have no idea how to get around either issue.
The idea is that i am using a list box to display data on a form and storing the rowsource line for each record in the table which then is used to populate the list box on the form.
I have a table that lists all the equipment and then a table that records when a equipment check is carried out and what is checked. The check form uses a list box populated from the equipment table for the user to choose from and then records which item is checked and then the idea is that if i lookup any item i can easily pull up when it was checked. The only unique field is the primary key but the user needs to see the description field. If there is a way to store the primary key and then display the description field on the form then all my problems would be solved.
I can send the database but it's about 40MB
Regards
Adam
I get a 'type mismatch' error when i run this code, the field 'equipment_checked' is of type 'memo' and i understand that the rowsource can only hold 2048 characters but i have no idea how to get around either issue.
The idea is that i am using a list box to display data on a form and storing the rowsource line for each record in the table which then is used to populate the list box on the form.
I have a table that lists all the equipment and then a table that records when a equipment check is carried out and what is checked. The check form uses a list box populated from the equipment table for the user to choose from and then records which item is checked and then the idea is that if i lookup any item i can easily pull up when it was checked. The only unique field is the primary key but the user needs to see the description field. If there is a way to store the primary key and then display the description field on the form then all my problems would be solved.
Code:
Private Sub Form_Current()
Dim temp As String
temp = CurrentDb.OpenRecordset("SELECT equipment_checked FROM tbl_equipment_checks")
Me.equipment_checked.RowSource = temp
End Sub
I can send the database but it's about 40MB
Regards
Adam