
Signature
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
Ok, this is why I was considering going down the save it as a query and
execute the query route. I have never designed a form in a datasheet format
before and dont know how to do it. Also I am anticipating building a
configuration form that will allow the user to select which fields they wish
to display in the output, so I thought if I save it as a query and execute
the query, the default behavior to display the results of a query is in a
datasheet mode (except that I am getting an error about running a select
query when I try this method). I dont know if it is possible to just display
a recordset in a similar manner.
> Just assign the SQL string you created to the RecordSource property of the
> form to get the results you want.
[quoted text clipped - 17 lines]
> > Thanks
> > Peter
Allen Browne - 21 Nov 2006 01:02 GMT
No worries. If you would prefer to assign the query, you could create one
for the purpose, and then assign the SQL statement to the QueryDef, e.g.:
CurrentDb.Querydefs("Query1").SQL = strSql

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
> Ok, this is why I was considering going down the save it as a query and
> execute the query route. I have never designed a form in a datasheet
[quoted text clipped - 36 lines]
>> > Thanks
>> > Peter