Hi all,
Can anyone tell me how to assign a recordset as a data source for a continuous form?
I'm using Set Forms("frm_OrdersSummary").Recordset = rstRecords, the screen flashes but then the data disappears from the screen for some reason.
Regards
Melt
Can anyone tell me how to assign a recordset as a data source for a continuous form?
I'm using Set Forms("frm_OrdersSummary").Recordset = rstRecords, the screen flashes but then the data disappears from the screen for some reason.
Regards
Melt
PHP:
Dim dbs As DAO.Database
Dim rstRecords As DAO.Recordset
Set dbs = CurrentDb
Set rstRecords = dbs.OpenRecordset("qrySummaryOrders")
If rstRecords.EOF Then
'no records so set the recordsource to return a no results row, fixes a nasty access bug that blanks unbound combo boxes on a form, when there is no data returned
Me.RecordSource = "qryNoResults"
'show the No Results textbox
Me!txtNoResults.Visible = True
Me.Refresh
Else
Set Forms("frm_OrdersSummary").Recordset = rstRecords
'turn off No Results textbox
Me!txtNoResults.Visible = False
Me.Refresh
End If
rstRecords.Close
dbs.Close
Set rstRecords = Nothing
Set dbs = Nothing