Access handing back control before module finished

Ifonly

New Member
Joined
Feb 16, 2003
Messages
6
I have a database that handles bookings etc for after-school care. I set it up so that the user could just tick boxes to indicate days each child books.

This gave a total of 65 tick boxes. I then set up a combo box that showed "monday week 4" or whatever but kept a value from 1 to 65 for the appropriate day.

Lastly, I set up a set of if statements basically saying
if combo=1 make a table where day1 is ticked
if combo=2 make a table where day2 is ticked
etc

My problem is that when I run the module I get an hourglass for a second or two and then back to the pointer but the pointer appears 2 or 3 seconds before access has finished making the table.

The object is to print the roll but I can't put the print command in the module or macro because I get an error "table doesn't exist" and even with a seperate print button the user gets an error unless they wait the few seconds.

Is there some way to introduce a pause or wait in the process?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,221,528
Messages
6,160,343
Members
451,638
Latest member
MyFlower

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