Form Dropdown Menu
Nov 4, 2005In an Access Project I have a form with a drop down menu linked to a parameter query. How would I set the query parameter to Environ("userName")? Any help would be appreciated.
Thank you
In an Access Project I have a form with a drop down menu linked to a parameter query. How would I set the query parameter to Environ("userName")? Any help would be appreciated.
Thank you
I was wondering if you knew how to link a checkbox/radio button to a drop down menu? Or if it's even possible in Access.
For example, the form provides two checkboxes/radio button: student or faculty. If someone chooses either one, a drop down menu would appear with the names of the associated members. They can then select the corresponding name. Is this possible in Access? Do you have any other ideas on how I can implement this in Access?
Hello,
I have a form which gets it's records from qryCompleted.
The form shows all records with selected fields in a list.
Each title of the fields is a drop down box which need to update everytime any of the other drop down boxes are updated.
For example, if cmbCompanyName was updated, then all other drop down boxes need to have "select [field] From qry Where [company name] = cmbcompany name".
If cmbcompanyname and cmbregionname is updated, all other boxes need to have "select [field] From qry Where [company name] = cmbcompany name and [region name]=cmbregionname".
and so on and so on.
There's 6 fields that need to have filters on, which i quickly calculated at about "A shitload" of 'if-then-else' statements.
Is there an easier way?
Here's my problem:
I got a Table which contains software:
TblSoft:
ID |Software
-------------
1 |Office
2 |Winzip
3 |Etc.
I made a form with a dropdown-menu in which I can select the software and it stores it in another Table named TblPC.
It stores something allright. but not the text. It stores the ID Nr.
How do I get this to work that it puts the text inside the table instead off te ID nr?
I allready tried changing the properties off the listbox but it wouldn't help.
I currently have a button that opens a report. the report pulls from a query that has parameters set to "fromdate" and "todate". instead of using dates and parameters that pop up as blank text boxes, I would like to click the button, have a form pop up with a combo box to select all of the options available (currently 23 options) and then click a button to make a report that only displays the record (1-23) selected. I do not need any time constraints because as the databases get updated with more records, there would be more than 23 options to choose from.
View 1 Replies View RelatedHey all,
Here is my contact Form and Table:
Form "contacts":
Contact Name ___________
Phone _______________
Address _______________
Town/City ______________
State _____________
Post Code ____________
From the form the data is entered into Table "contacts":
id contact phone address town state pcode
__________________________________________________ _____
| | | | | | | |
| | | | | | | |
| | | | | | | |
And here is the Invoice Form:
Okay this is the bit where i get lost:
Form "invoice data"
Contact Name ___________
Phone _______________
Address _______________
Town/City ______________
State _____________
Post Code ____________
Job Date _______________
Due Date ____________
Description ____________
Amount _______________
GST _______________
Total Inc GST ___________
Invoice Number ________________
Notice that the first 6 fields (contact name, phone, address, town, etc) are the same as the fields in the previous table.
What i want is to be able to make the field "contact name" a drop down box, which when a contact is selected it changes all the other fields (phone, address, town, etc) to correspond with that contact.
I know that all that may have sounded a bit comlicated, but that is the easiest way for me to put it. Im sure this is really easy for you pro's.
Thanks heaps :)
ps. if unsure of anything i wrote plzzz ask :)
I have a form where I have two drop down list box.The first list box is called Transaction_Type. It contains three values: Created, Allocated and Sold
The second list box is called Product_Status. It contains 6 items: Allocated, Produced, Reworked, Shipped, To Be Produced, Unallocated.
I have a products form. When a user created more inventory they will selected in the drop down list create, then a quantity. Then I would like the status of the product to update to "Unallocated".
When the user placed an order but doesn't finish it they will choose the status of the inventory to be allocated so I would like the product status to be updated to allocated automatically.
They other status the user will choose them self and do not need to be linked to each other.
In my vba code I have tried with the OnClick and AfterUpdate sub procedures with the following code.
If Me.Transaction_Type.Value = "Created" Then
Me.Product_Status.Value = "Unallocated"
End If
If Me.Transaction_Type.Value = "Allocated" Then
Me.Product_Status.Value = "Allocated"
End If
Yes when i select "created" from the drop down list it does not change product_status to say "unallocated"
(in using access 2007)
I am currently developing an app with MS-access. I need two drop boxs on the same form. First is states and second is cities. When user selects one state from the first dropdown box, the second dropdown box will only display the cities that in the selected state. Is that possible by using ms-access??
Tanks
I have a form with a dropdown box that shows the 'Group by' records in a table.
For example the form shows "Art_6". My table has many records (could be 1000's) that start "Art_6".
I want a macro/query to find all records that start "Art_6" and delete them.
How to find only those that start as described.
I Have made a change to a field in my tables. it was was based on ethnic background and originally i had just created the field but had not added in the options ( via adding it into the row sources).
So now the tables field have been updated but unfortunately on the form it has not updated into the dropdown i had created containing the options..
I must create a database for the company that I work for that covers the maintenance history of our stone crusher plant. In this database I have two dropdown lists. The first one is for the equipment and the second one is for the different types of parts that has to be replaced or fixed.
Not all of the equipment uses all of the listed parts, but some parts are used on more than one type of equipment.
I have already created a database that lists all the equipment and another one that lists all the parts.
What I want to do now is create a Yes/No box for each type of equipment so I can mark which parts is used by which equipment.
Then you must be able to select the type of equipment from a dropdown list and then select from a dropdown list that only has the parts that is used by the piece of equipment.
I am using Access 2007
I'm working on a database to organize and streamline the process that the manufacturing facilities in my organization use to request removal of defective product and raw materials. Currently all of the facilities send me their requests on individual excel spreadsheets via email, which are difficult to keep track of and report on since nothing is consolidated. What I've done is create a form in access that mirrors the current spreadsheet being used, so all the facilities have to do is enter the info into the access form rather than excel. The use of access is more for my benefit than theirs though, as it will keep track of the requests as well as make reporting on the request data much simpler.
When the facilities fill out the request form and select their facility number from a drop down list, I'm wanting them to be provided with a "Request ID" so that they may keep track of the progress of the request. The request ID should be a sequential alphanumeric value that includes the facility's three digit facility code, the last two digits of the year, and the number of the request. An example would be PL1-150001. The kicker here is that I want each facility to have it's own set of sequential numbers. So for example let's say I receive four requests in one week, three from facility 1 and one from facility 2. They should be assigned request ID's such as PL1-150001, PL1-150002, PL1-150003, and PL2-150001.
I'm working with a form in Access 2013 that uses the navigation buttons. I'm trying to have my criteria for a query link to a dropdown box on the form. I had no problems doing this in Access 2010 with normal forms, but I can't link the criteria, in the query to the Navigation buttons form box. I'm tried using
[Forms]![TheNavigationTab]![NavigationSubform].[Form]![Field]
And various forms of the above... but i still can't see to tell the query to find the critiera at this location...
Hi everyone,
I was trying out the options on the startup item of the tools item on the menu bar and my access window has gone except the following menu items: File,Window and Help.
Can someone kindly show me how to bring back these seemingly lost items?
Thank you for your willingness to help me out!
I have searched and read and figured out how to make a custom menu bar. I see how I can use the forms property sheet to change the menubar that is available when it is open.
I've also seen code to hide the database window so that the form appears as a stand alone application. Like these links:
http://www.access-programmers.co.uk/forums/showthread.php?t=100545
http://www.access-programmers.co.uk/forums/showthread.php?t=98163&highlight=hide+access
If I do that will my custom menubar is hidden?
Is there a way to add a menu bar directly to the form? Make it part of the form?
I found similar questions unanswered here:
http://www.access-programmers.co.uk/forums/showthread.php?t=75316&highlight=menu+bar+form
http://www.access-programmers.co.uk/forums/showthread.php?t=14722&highlight=menu+bar+form
It was answered here but I must be missing something.
http://www.access-programmers.co.uk/forums/showthread.php?t=55582&highlight=menu+bar+form
When I change the forms menubar property to me menubar, my menu bar is dsplayed when I open the form. It is displayed in the Access window, not in my form.
I have a form that I want to display at startup and in that form I want to have a menu that will allow me to show outer forms and reports.
Can anyone tell me how to do that?
Hello all, i'm trying to create a database just now and i'm banging my head a little on the forms side of things.
Can anyone tell me how, or if its possible, to create a "Main Menu" form, that gives you options to say, add a record to a table, to delete a record etc.
any help would be greatly appreciated.
cheers guys
I've a custom menu bar from which I can choose any of my forms. However when you choose a new form the old form stays open, sloppy in my mind. Is there any way i can choose the new form from the menu bar & close the previous form? I've tried to close on deactivate, w/ no luck.
View 2 Replies View RelatedHi it possible for lookup in 1 column to be dependant on the lookup on another columns depending on what is clicked in a form to make it easier
brand table
field 1: Number auto
field 2: Drink linked to lookup table called
drinks
field 3: type of drink linked to lookup table called
subdrinks
Drinks table
Pepsi
Coke
other
Subdrinks table
original coke cola
diet coke
coke with vanilla
coke with lemon
original pepsi
diet pepsi
persi max
pepsi with lemon
now in a form looking at the brand table. the person clicks on Drinks = picks coke from drop down menu
what I need is if the person picks on coke the next drop down menu type of drink it should only show those related to coke.
original coke cola
diet coke
coke with vanilla
coke with lemon
what i am getting is the second drop down shows everyhting and if the user makes a mistake the reports ie chose coke but in the next field chooses diet pepsi, the data does not make any sense. is there any way to limit the second drop down based on the choice in the first drop down.if there are any ideas to help in this matter maybe some VBA or macro may be required, i am not too sure open for suggestions and help would be appreciated.
Thanks
I've created a popup menu form to be loaded when you cick on another form. I need to know how to get the popup menu form to close when you click off it. I've tried using lostfocus and deactivate but that didn't work. Modal is set to no. What code should i use and where would it go?
View 8 Replies View RelatedI have an MS Access problem I need some help with. I am trying open a form for input from selection in a drop down menu in an access database. Any ideas on how I should do this??:confused:
View 3 Replies View RelatedI have a series of forms. The 1st form is my main menu. On this form I have 5 command buttons which gives the user options to ...
Button1 - Enter Station Scores
Button2 - Print Performance Sheets
Button3 - Print Audit Sheets
Button4 - System Administration
Button5 - Quit
When the user clicks one of the buttons (with the exception of the Quit button) I perform the following code (This code is for the 1st button)...
Code:
Private Sub cmdEnterStationScores_Click()
' Open select workstation
DoCmd.OpenForm "frmSelectWorkstation", acNormal, , , , acWindowNormal
' Close main menu
DoCmd.Close acForm, "frmMainMenu", acSaveNo
End Sub
So far so good...
The "Select Workstation" form opens fine with no sign of the main menu. I have a "Continue" button on this form which opens yet another form using the following code...
Code:
Private Sub cmdContinue_Click()
' Delete workstation name
Call DeleteWorkstationName
' Store selected workstation
Call StoreWorkstationName(strSelectedStation)
[Code] ....
...For some reason the "Main Menu" form reopens itself at the same time as the "Enter Sort Scores" form, so I have 2 forms on the screen, with the "Main Menu" screen on top.
Why does the Menu form re-open?
I have set breakpoints in every bit of code I have and stepped through it all, but nothing I can see references the Menu form!
In the Lesson 22 tutorial presented here: [URL] .....
They create form where the called Countries toward the end where:
The have a textbox for Government Type. It is a drop down menu of choices that the database creator can choose such a capitalist, socialist, and communist etc.
However, in the form (with the records source as Countries) there is only a space for input no drop down menu. I know this may seem awful elementary to the seasoned database designer, but how does one get it to be a drop down menu?
I have made the input in Countries table to be a look-up which I typed (see above choices) and the is the control source for the Countries Form government type. But there is still no drop down menu with choices on the Countries form. What must I do additionally?
If this is already talked about in one of the MS Access 2010 tutorials earlier lessons then a referral to that source is all that is needed.
Hi,
I would like to be able to open a customer form without starting MS Access.
Is there a way to make a form an executable module?
John
I have designed a form to act as a menu to open other forms. I created the form and placed command button on the form. Using the Access Wizard, the following VBA was created by Access to open the next form:
Private Sub cmdCCDolClr_Click()
On Error GoTo Err_cmdCCDolClr_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmCCUS_Dollar_Clearing"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdCCDolClr_Click:
Exit Sub
Err_cmdCCDolClr_Click:
MsgBox Err.Description
Resume Exit_cmdCCDolClr_Click
End Sub
I have done this several times in the past with success. However, this time, I get the following error message when I click on the command button to open the second form.
The expression On Click you entered as the event property setting produced the following error: A problem occured while GCM (name of dB) was communicating with the OLE server or Active X Control.
*The expression may not result in the name of a macro, the name of a user-defined function, or [EVENT PROCEDURE].
*There may have been an error evaluating the function, event or macro.
I tested other forms that were designed to open secondary forms and they continue to act correctly. Is there an easy fix to this issue. There are 16 command buttons and all get this message. Do I have to delete the form and recreate it. A nusiance, but not difficult.
Looking forward to hearing from you experts out there.
Thanks, Alan
__________________
Alan Sidman
i would like to create custom menu bars for my forms report
View 6 Replies View Related