Results 1 to 12 of 12
  1. #1
    asinha9 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    11

    how to create query from form?

    i have a database( which I did not build!) and I need to run a query based on the fields in the form.
    The problem is not all the fields located in the forms are traced back to a source table/query (at least none that i can find!)
    Is there some way i can build a query from the forms itself?

  2. #2
    wingsgary is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Apr 2013
    Posts
    1
    Are you familiar with the Expression Builder yet????

  3. #3
    asinha9 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    11
    not really, but I can try!

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Those fields you can't trace are probably unbound textboxes with calculations. Open form in design view and explore.

    You want to use the form as a source of criteria to open a filtered query?

    Review: http://datapigtechnologies.com/flash...earchform.html

    Probably a good idea for you to work through a basic tutorial book or on-line source.
    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.

  5. #5
    asinha9 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    11
    I opened the design view of the form and there is no control source on any field. Is there a way I can even find where the entries are in a datasheet format?

  6. #6
    asinha9 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    11
    Is there a way I can view the entries of this form in a data sheet?

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    If you want to provide db for analysis, follow instructions at bottom of my post.
    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.

  8. #8
    asinha9 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    11
    Thank so much the form is the one called final outcome

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    That form is a form/subform arrangement. It has a tab control with 3 subforms on pages of the tab control.

    The main form FinalOutcome is bound to Admission table.

    ICUSubform is bound to ICU table.

    EndoscopySubForm is bound to Endoscopy table.

    SurgerySubform is bound to Surgery table.

    Every control on every form is bound. There are no queries and no calculated fields. A simple data entry form.

    If you want to see all data from these 4 tables in one dataset, then build a query with the query designer. This is basic Access functionality and Access Help has guidelines.
    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.

  10. #10
    asinha9 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    11
    Thanks!
    What about the subform in final outcome that is called D/C and CXR? I couldn't find the fields for them?

  11. #11
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Those are not subforms. The data controls are placed directly on pages of tab control. They are bound to fields in Admission table.
    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.

  12. #12
    asinha9 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    11
    Thank you so much!!!
    You have been such a great help, I can't thank you enough!!
    You have been awesome!!!!!

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

Similar Threads

  1. Replies: 8
    Last Post: 03-21-2014, 04:31 AM
  2. Replies: 5
    Last Post: 03-27-2013, 05:10 PM
  3. how to create data entry form using query
    By dave john in forum Programming
    Replies: 1
    Last Post: 08-21-2012, 06:00 AM
  4. Replies: 3
    Last Post: 07-10-2012, 05:23 AM
  5. Code to create a query from a form
    By stryder09 in forum Queries
    Replies: 15
    Last Post: 10-17-2011, 01:55 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