Vba Query --> Form?

CJBIRKIN

Drink!
Local time
Today, 12:57
Joined
May 10, 2002
Messages
255
Hello
I am rapidly coming to the point where i need to do more complex queries than can suitably be handled using the QBE. What i need to know is how to link a query written in VBA to a form. Does anyone have a simple example??

Cheers

Chris
 
You want to show the records based on your VBA SQL? Try this.

...
Dim strSQL

strSQL =" ......"
...
Me.RecordSource = strSQL
 
Hello

Who'd guess life could be so simple!!.

Thanks v.much

Chris
 

Users who are viewing this thread

Back
Top Bottom