Hello all,
I have written a query which takes values from two tables:
tblPIDjoin: Index, PIDNumber, SystemNumber
tblPID: PIDNumber, DrawingTitle
The query takes the SystemNumber and PIDnumber fields from the one table and the DrawingTitle field from the other table. I then have as the criteria for the SystemNumber field that it pull a value from a text box on a form, thus pulling only the records I am interested in. I've then set the OnChange property of the text box to update the RowSource of a list box, using the following code:
stDocName = "qryPIDmain"
Me.[lstDrawing].RowSource = "qryPIDmain"
But, the list box is not updating... it just shows a blank. What am I doing wrong?
Thanks,
Chris
I have written a query which takes values from two tables:
tblPIDjoin: Index, PIDNumber, SystemNumber
tblPID: PIDNumber, DrawingTitle
The query takes the SystemNumber and PIDnumber fields from the one table and the DrawingTitle field from the other table. I then have as the criteria for the SystemNumber field that it pull a value from a text box on a form, thus pulling only the records I am interested in. I've then set the OnChange property of the text box to update the RowSource of a list box, using the following code:
stDocName = "qryPIDmain"
Me.[lstDrawing].RowSource = "qryPIDmain"
But, the list box is not updating... it just shows a blank. What am I doing wrong?
Thanks,
Chris