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 / Modules / DAO / VBA / March 2007

Tip: Looking for answers? Try searching our database.

Make a drawing via access using loop

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
zionsaal@gmail.com - 05 Mar 2007 23:39 GMT
I have a table with one field in it and i wont to draw one record so
i open a form and i created a loop to go to the next record randomly
the whole table and then every second minute I  stop the loop and i
got the winner means the record where the loop stop in it

but I don't have a way to stop the loop only by pressing ctrl break
I wont to code that when i will press any key it should stop running
the code and it should came op a MSG box with the name
any help please?
thanks

here is the code
Private Sub Command2_Click()
gggg:
DoCmd.GoToRecord , , acFirst
Do Until Me.NewRecord
DoCmd.GoToRecord
{here I wont to put: if key = enter then exit sub and do this and
this}
Loop
GoTo gggg
End Sub
zionsaal@gmail.com - 08 Mar 2007 21:43 GMT
On Mar 5, 6:39 pm, zions...@gmail.com wrote:
> I have a table with one field in it and i wont todraw one record so
>  i open a form and i created a loop to go to the next record randomly
[quoted text clipped - 18 lines]
> GoTo gggg
> End Sub

does any one have a way for me?
 
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.