Setting a recordsource to null

S

Stephen English

I know how to set a recordsource of a subform in code.
but... How do I set it to null
The situation is that I select a customer and then on
another tab enter some search parameters for products and
then set the recordsource of the subform to an appropriate
SQL statement. Works fine
However, when I select another customer, I want to set the
product SQL to Null
Me!frmProdSearch.Form.RecordSource = Null doesnt seem to
work.
Any suggestions please?
THanks
Stephen
 
S

Steve Schapel

Stephen,

It is impossible to have a Null recordsource. Try...
Me.frmProdSearch.Form.RecordSource = ""

- Steve Schapel, Microsoft Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top