No Data before Combo Box

farewinners

New Member
Joined
Jun 12, 2013
Messages
11
I have a form with a combo box that finds a record on the form. When the form opens it goes to one of the records but the combo box is still blank. I want the form to load empty until a record is selected in the combo box. Thank you in advance.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
set the form.DATASOURCE = "" (an unbound form)
the the combo.AFTERUPDATE event:
set the form.datasource
filter the 1 record
 
Upvote 0
set the form.DATASOURCE = "" (an unbound form)the the combo.AFTERUPDATE event: set the form.datasource filter the 1 record
Sorry I am relatively new to access. How exactly do I do this? I have a button that when i push it It opens the form "deletereason" the form has a RecordScource of "ActiveAprovedReasons" which is a query. There is a combo box in the form combo11 that has a rowsource of "SELECT [ActiveAprovedReasons].[LastName], [ActiveAprovedReasons].[Reason] FROM ActiveAprovedReasons;". Lastly the combo11 box has a macro in afterupdate to searchfor record with a where clause of ="[LastName] = " & "'" & [Screen].[ActiveControl] & "'"
 
Upvote 0

Forum statistics

Threads
1,215,487
Messages
6,125,082
Members
449,205
Latest member
Healthydogs

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