Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select some or show all records

Status
Not open for further replies.

Samulayo

Programmer
Aug 13, 2002
46
GB
I have a message box appear for users to enter the data required in order to filter a form, just the standard query message box.
Now a user would like to be able to see all the records in the list, as well as being able to select a certain range. What is required to be entered into the message box?
I know that typing "Is Not Null" in the criteria field achieves this result, but is not emulated when typing into the text box.

Regards
Samulayo
 
What data type is the criteria field?

Mike Pastore

Hats off to (Roy) Harper
 
the field is a string, i can now get this to work using the message box and the criteria

"Like [Forms]![Report Maker]![txtname]"

and then using * in the box, but i was auto filling the msgbox with data from a form (a filter form), where the use of * doesnt work, using a wherecondition:-

DoCmd.OpenReport stDocName, acPreview, stDocName, WhereCondition:="Discipline = [Forms]![Report Maker]![Discipline] And FullName = [Forms]![Report Maker]![txtname]"
 
and now it wants to work. wierd, thanks for the help anyway.

Regards
Samulayo

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top