After control source

Gregorys05

Board Regular
Joined
Sep 24, 2008
Messages
217
Hi All,
I have a text box with a control source that pulls data from a query, because of this it takes a while for the information to populate, so i have created a loading form that displays on opening the form, what i want to do is then close the form once the query has run and the text box now has information in it, i have tried Afterupdate, on dirty, onchange. But still not having any luck.

Any ideas??

Thanks
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
You can put a timer on the "loading form" which is set to TimerInterval of 1000 (one second). In the timer event on that form you can use
Code:
If Len(Forms!YourOtherFormName.YourTextBoxNameHere & vbNullString) > 0 Then
   DoCmd.Close acForm, Me.Name, acSaveNo
End If

So it should remain open until the text box is populated and then close itself. You don't need to change anything in this line:

DoCmd.Close acForm, Me.Name, acSaveNo

but you will need to supply the correct form and text box names to the part above it.
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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