Hi. Hope I can get some help for a little problem I've run into.
I have a simple form based on a SELECT query.
The form is set to Split View.
I have a text box that I use to restrict the results to what I'm looking for from the form's record source.
eg. If I put 'C*' in the text box, I see all results that start with 'C' in the data view and associated form .
This all works well.
...
Except for when the requery returns no results. Everything then disappears, The form is still split in two, but both dataview and form sections are blank.
And there is no way of resetting it because a form button I can use is no longer there!
Hopefully I've included all I need.
Thanks.
This is the simple code I use:
Private Sub Text74_AfterUpdate()
'Search text box.
DoCmd.Requery
'I believe I need some code here to check if the requery returned no results'
End Sub
This is the simple SQL I use:
SELECT *
FROM FullList2
WHERE ((FullList2.TitleName) Like [FORMS].[ToBeSold]![Text74])
I have a simple form based on a SELECT query.
The form is set to Split View.
I have a text box that I use to restrict the results to what I'm looking for from the form's record source.
eg. If I put 'C*' in the text box, I see all results that start with 'C' in the data view and associated form .
This all works well.
...
Except for when the requery returns no results. Everything then disappears, The form is still split in two, but both dataview and form sections are blank.
And there is no way of resetting it because a form button I can use is no longer there!
Hopefully I've included all I need.
Thanks.
This is the simple code I use:
Private Sub Text74_AfterUpdate()
'Search text box.
DoCmd.Requery
'I believe I need some code here to check if the requery returned no results'
End Sub
This is the simple SQL I use:
SELECT *
FROM FullList2
WHERE ((FullList2.TitleName) Like [FORMS].[ToBeSold]![Text74])