Help with Popup Form

FFischer

Board Regular
Joined
Oct 10, 2013
Messages
59
Hello Developers

I need to create a form in Access that will ask the user for Division (3-Letter Abbreviation) State (2-Letters) and Initials (2 letters)
This info will then be passed to variables in VBA

I need for the form to remember the last entries that were submitted:

For example

Division: WST
WST was the last entry for Division, but the user needs to have the option to enter CNT

State: CA
CA was the last entry... and so forth

How can I set the default entries to be the last data that was input?

Thanks
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
you can save the last entered value in the .TAG property of the control.
cboState.tag = cboState

i have a tClientDefault table to store these for later.
when the user closes the screen, post the values to the table (update query)
in the Form_Close() event, run the update query to save the values.

in the form_Open event, load the defaults from the table
cboState.tag = rst.State
cboState = rst.State
 
Upvote 0

Forum statistics

Threads
1,221,845
Messages
6,162,350
Members
451,760
Latest member
samue Thon Ajaladin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top