Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Macros / March 2004

Tip: Looking for answers? Try searching our database.

Forms and Events

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
stfuji - 29 Mar 2004 19:13 GMT
Hello there fellow accessians,

I have a small access / application that I am creating.  I hav
migrated over to using the spreadsheet control to do the data entry (
like using excel, but want to keep my data in a database).  Anyway
have written some small scripts to read in and out the data from th
database (in and out of these spreadsheet controls owc10.spreadsheet).

I have also written a dataduplication routine, which spawns a no
editable spreadsheet control with any duplicated rows from a callin
spreadsheet control and allows the user to keep or discard these row
with two buttons.

I want all of this to happen when the user exits the data entry for
here is my envision sequence of events

spreadsheet_onEnter : load data from appropriate query / table

spreadsheet_onExit :

run duplicate row value check (possible spawn form for user input
if user specifies delete information out of spreadsheet

begin transaction
clear associated table
save information back into table
end transaction / if error occured roll back stop exit refresh form
apologize to user

exit form

The problem I am having is how to you pause an event to wait for a use
input.

I try using a while loop, but that sucked all the cpu up and the othe
form was usless because of the infinitely looping cycle.  

What I want is some wait to hold the exit event waiting for the othe
form to close...

If no other person has an idea i will slap a exit button in and tra
the other exit events and force the user to use the button to click ou
so I can cycle through a few more events and perhaps raise the exi
event on my own from the child form.  

Any help would be great

Thanks,
Geoffr

-----------------------------------------------
~~
~~
stfuji - 29 Mar 2004 21:31 GMT
Solution was found at this location:

http://ourworld.compuserve.com/homepages/attac-cg/ACodeTip.htm#INPUT

Thanks
Geoffre

-----------------------------------------------
~~
~~
dandgard - 29 Mar 2004 22:37 GMT
create your user input form as a dialog.  Dialogs are modal and stop al
activity until closed

-----------------------------------------------
~~
~~
stfuji - 29 Mar 2004 21:31 GMT
Solution was found at this location:

http://ourworld.compuserve.com/homepages/attac-cg/ACodeTip.htm#INPUT

Thanks
Geoffre

-----------------------------------------------
~~
~~
dandgard - 29 Mar 2004 22:37 GMT
create your user input form as a dialog.  Dialogs are modal and stop al
activity until closed

-----------------------------------------------
~~
~~
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.