E
Eric
My query works fine. I check it in debugger it gives me the correct
value. But the textbox which i create in the form is not bound with the
table. I dont know it needs to bound or not as i need only a textbox
for display. In this text box it shows the last value of the recordset
and repeat it in the subform. I dont know how to i fix this problem.
qry = "SELECT tbl_EquipmentChronology.Equipment1 FROM
tbl_EquipmentChronology INNER JOIN tbl_events ON
tbl_events.TicketNum=tbl_EquipmentChronology.TicketNum where
tbl_events.TicketNum=" &
Forms!tbl_PPVResearch_Edit!frm_Events!TicketNum & " and
tbl_events.PPVVOD_Outlet=tbl_EquipmentChronology.Outlet"
Set rst = CurrentDb.OpenRecordset(qry)
rst.MoveFirst
Do While Not rst.EOF
Forms!tbl_PPVResearch_Edit!frm_Events!text2 = rst!Equipment1
rst.MoveNext
Loop
value. But the textbox which i create in the form is not bound with the
table. I dont know it needs to bound or not as i need only a textbox
for display. In this text box it shows the last value of the recordset
and repeat it in the subform. I dont know how to i fix this problem.
qry = "SELECT tbl_EquipmentChronology.Equipment1 FROM
tbl_EquipmentChronology INNER JOIN tbl_events ON
tbl_events.TicketNum=tbl_EquipmentChronology.TicketNum where
tbl_events.TicketNum=" &
Forms!tbl_PPVResearch_Edit!frm_Events!TicketNum & " and
tbl_events.PPVVOD_Outlet=tbl_EquipmentChronology.Outlet"
Set rst = CurrentDb.OpenRecordset(qry)
rst.MoveFirst
Do While Not rst.EOF
Forms!tbl_PPVResearch_Edit!frm_Events!text2 = rst!Equipment1
rst.MoveNext
Loop