Results 1 to 4 of 4
  1. #1
    Triscia is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    8

    Create a query from a form


    Is it possible to run a query from a form. I have a database that someone has created and I am trying to run a query from it. I ultimately want to create a Switchboard for users to use which is easier when they are trying to locate their specific records. TIA.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    What do you mean by 'run a query from a form'. A SELECT, UPDATE, INSERT, DELETE? Code can open a query object. Users should not even see tables and queries, only forms and reports.
    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
    Triscia is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    8
    I thought that queries had to be run from a table and not a report. When I go to set up a query it asks from what table or query. The problem is the person that designed the database didn't create a table, they just used a form that downloads from a website. I am trying to make it so users do not have to look at all the unnecessary data, only data that pertains to them. I am ultimately trying to set up a switchboard to make it even easier on them. The person that set up the database has all the tables, queries, reports and forms available for people to see. I think that is too confusing for people who are not familar with access. Thanks appreciate any help!

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    The downloaded info is fed directly into unbound textboxes on an unbound form? If so, then it isn't saved anywhere. Close the form and the data goes away.

    Queries can be opened/run by code behind forms or reports. Forms and reports use tables, saved queries, or SQL statements as their RecordSource.

    The navigation pane can be hidden and shortcut menus can be disabled. The ribbon can even be modified to not provide design tools. However, be aware that without some extreme measures, those settings can be overridden by holding the shift key while opening the db.
    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. Replies: 1
    Last Post: 05-20-2013, 01:45 PM
  2. how to create query from form?
    By asinha9 in forum Queries
    Replies: 11
    Last Post: 04-23-2013, 06:04 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