Gregorys05
Board Regular
- Joined
- Sep 24, 2008
- Messages
- 217
Hi,
I am trying to get a subform to show the results from a query, the code below loads the form sets the recordset which i know works as the subform lets you scroll through 4000 odd records
BUT
none of the records are actually displayed,
any ideas why this may be or how to fix it.
Thanks
I am trying to get a subform to show the results from a query, the code below loads the form sets the recordset which i know works as the subform lets you scroll through 4000 odd records
BUT
none of the records are actually displayed,

any ideas why this may be or how to fix it.
Thanks
Code:
Private Sub cmdviewinByboxnotindhl_Click()
DoCmd.OpenForm "Form1", acNormal, "", "", , acNormal
SQL = "SELECT TblBybox_Returns_CSV.Meter_Serial_Number" & _
" FROM TblBybox_Returns_CSV LEFT JOIN TblDHL_Returns_CSV ON TblBybox_Returns_CSV.Meter_Serial_Number = TblDHL_Returns_CSV.Mtr_Serial_Number" & _
" WHERE (((TblDHL_Returns_CSV.Mtr_Serial_Number) Is Null));"
Forms![Form1]![Form2].Form.RecordSource = SQL
Forms![Form1]![Form2].Form.Requery
End Sub
[code]