Results 1 to 14 of 14
  1. #1
    LiverEatnJohnson is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    17

    Form for multiple tabels join issue


    Thanks in advance for the help everyone.

    I am working on a small database to report on student eval to a motorcycle safety course. Here are my relationsships and fields
    Click image for larger version. 

Name:	Untitled.jpg 
Views:	7 
Size:	99.6 KB 
ID:	10740

    What I want to do is have one form that can enter all the data in and it places an entry into several tabels. I have attached a copy of the form the students use, and as you can see the whole databse is built off that form. The end result is to do satistic reporting on that form. Right now I am running into a syntaxk error in join operation that is a bit confusing because it dosen't tell me which join the error is in. My question is can I even use one form to add a new class with coaches, and then another form for each eval that the students fill out to enter the rest of the data. If possible the form should look as much like the one the students see as possible. I want to use one form for the whole database if I can. If anymore information is needed let me know.

    Thanks for the help
    LiverEatnJohnson
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Can't use one query and one form to enter data into multiple tables. Use form/subform arrangement.

    It is not always practical to make a data entry form look exactly like a paper form but should get it close.

    For instance, the form wants user to mark a check in front of a category (__Cruiser, __Touring, __Sport Bike, etc.). On form this could be a Combobox, Listbox, or OptionGroup with radio buttons.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    LiverEatnJohnson is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    17

    redoing tabels

    I agree with you about the combo boxes and how a form looks on paper and access. I have made some progress though, what I am gonna do now is change the relationship between the class and eval to one to one and then the eval becomes the stored form for that class i will then add another set of tabels to hold the answers the studnets give. Then with a little vba i can generate a form from the entries in the eval and related tabels and report on the answers in the student answers tabels. I will post my relationships when i get it and any I code I use to get this working. I belive others will benifit from this project and any help on it would be appchiated.



    Thanks

  4. #4
    LiverEatnJohnson is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    17

    new tabels

    Here is the new tabel relations

    Click image for larger version. 

Name:	rel.jpg 
Views:	4 
Size:	125.6 KB 
ID:	10772


    I will post code and other questions as i go. The question for now is how do I attach code to a form, and what kind of functions should i use to generate things like text boxes, option groups, check boxes, and text fields so that they match the entries made in the eval form and its related tabels? Then how to save the filled out form into the answers tabels. Any help would be great Thanks!

  5. #5
    LiverEatnJohnson is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    17
    Changed it again to include a table for each type of answer attached to the eval form to make saving the answers and reporting on them easer, like this.
    Click image for larger version. 

Name:	rel.jpg 
Views:	4 
Size:	142.1 KB 
ID:	10773

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Building tables, queries, forms, reports is basic Access functionality. There are wizards to assist or can build manually. Refer to Access Help.

    Code can be either macros or VBA. I use only VBA.
    http://office.microsoft.com/en-us/ac...010341717.aspx
    http://www.access-vba.net/introducti...ccess-vba.html
    http://www.functionx.com/vbaccess/Lesson01.htm
    http://ms-access-tips.blogspot.com/2...ers-guide.html
    http://ms-access-tips.blogspot.com/2...-property.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    LiverEatnJohnson is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    17
    hey

    Are reports just really sql select statements?

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Same as for a form, the RecordSource for a report can be a table or an Access select query object or an SQL select statement.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  9. #9
    LiverEatnJohnson is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    17
    Ok this is so crazy.

    I am trying to write code that will pop up a dialog where the user will select a class from the class table and then it will load the form so they can enter the evaluation data for the class they selected is there any way to do that i am not finding any help on this in google.

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Here is one way to filter a form's dataset http://datapigtechnologies.com/flash...tomfilter.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  11. #11
    LiverEatnJohnson is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    17
    Quote Originally Posted by June7 View Post
    Here is one way to filter a form's dataset http://datapigtechnologies.com/flash...tomfilter.html
    I am not trying to filter i want a listo box to pop up on form open and ask the user to choose a class once they have the class id is set tell they push chose another class button

  12. #12
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    What do you mean by 'popup'? A MsgBox or InputBox are intrinsic functions that can 'popup' to prompt for user input. Otherwise, have to build your own 'popup' with a form.

    What is a 'class button'?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  13. #13
    LiverEatnJohnson is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    17
    popup as in a dialog box, sorry that wasn't clear but the dialog box needs to have a list box in it so the user can select the class they want to add evals to.

  14. #14
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Then that is a form. Passing the selected value from popup back to the main form can be tricky. http://www.tutcity.com/out/access/pa...form.54951.htm
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. OUTER and INNER JOIN Issue
    By riaarora in forum Queries
    Replies: 1
    Last Post: 09-02-2012, 08:13 AM
  2. Inner Join and multiple fields
    By mrr2 in forum Queries
    Replies: 25
    Last Post: 05-16-2012, 11:11 AM
  3. Join multiple tables to one
    By b6677862 in forum Queries
    Replies: 1
    Last Post: 02-08-2012, 06:59 AM
  4. Join for multiple tables?
    By Etownguy in forum Queries
    Replies: 3
    Last Post: 05-30-2011, 04:54 PM
  5. Multiple Table Join Issue
    By tehbaker in forum Database Design
    Replies: 4
    Last Post: 10-07-2010, 01:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums