Any/All as a Choice in a Combo Box

rana1978

Registered User.
Local time
Today, 11:23
Joined
Jun 25, 2009
Messages
25
Dear…..,

I have created a database (see attached) where I can select only single item parameter for report. But I want to select single item and All Item (which ever I need) for reporting?

I have tried through Union Query, but failed to do so…

Please help me creating it in the attached file and send me the update file, Please…please…please


Rana
 

Attachments

Use this sql in the row source of combo

Code:
SELECT ITEMLIST.Ttem_Name
FROM ITEMLIST
union select '<All>'  FROM ITEMLIST
order by Ttem_Name;
 
yep, "ALL" is there but not giving the result to show all records in the report.
 
How are you employing the filter?

If you select an item from the list and it is not <All> then

Code:
If Me.Combo <> "<All>" Then
   Filter = "....."
Else
   Filter = ""
End If
 
You have to modify your query or apply a filter to report through form. I have used the query method
modified sample is attached
 

Attachments

Login User name in Data entry Form

Hello Khawar

I have developed an Inventory Database but facing some problem….

In the database there are some user names for entering the database. And the users have permission to input data. But I need to ensure the user names, who do input a specific data/record in the database. For this purpose it is necessary to show the user name (that is used for Login in the login Form) in the Data Entry Form and as well as in the main Database Table.

It will be very much helpful if any one can help me in the above issue.

Thanks

Rana:)
 

Users who are viewing this thread

Back
Top Bottom