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 / Forms Programming / May 2008

Tip: Looking for answers? Try searching our database.

Code accompanying Form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dennis - 21 May 2008 21:38 GMT
2003

Currently 1st time design/use of form.

I am not sure how to code a form.  Is there a wizard?  Does creating a form
and/or buttons generate any code?

The form will have 4 radial buttons.

I would like the form to open on FileOpen

Would like the user to select any, or up to all, radial buttons.

I do not know where to place the code.  (What is macro code vs form code?)

Macro????
  OnOpen
  Open MainForm

Button #1  (If checked on MainForm)
  Run query #1
  Copy results to c:\Reports\Results#1.mdb
Button #2  (If checked on MainForm)
  Run query #2
  Copy results to c:\Reports\Results#2.mdb
Button #3  (If checked on MainForm)
  Run query #3
  Copy results to c:\Reports\Results#3.mdb
Button #4  (If checked on MainForm)
  Run query #4
  Copy results to c:\Reports\Results#4.mdb

Thanks in Advance

EagleOne
Evi - 21 May 2008 22:19 GMT
Haven't you experimented, Dennis?

Do practice on a copy of the db and on a copy of the Results mdb first
before actually changing any data.

Creating a form does not create any code but if you add a button in Design
view the wizard should give you a list of choices one (under Miscellaneous)
being to run a query. You can view the code by clicking on the Code button
on the Toolbar in the form's design view.
The bit where you will need alot more help is the line that says

Copy results to c:\Reports\Results#1.mdb

That doesn't make much sense in Database terms. I'm guessing you are talking
about exporting the data to another database. Presumably there is a good
reason why you need to do this rather than just linking the two databases?

To get a form to open when the db opens, click on Tools, StartUp and choose
your form there.

Evi

> 2003
>
[quoted text clipped - 31 lines]
>
> EagleOne
 
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.