Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    judgedredd is offline Novice
    Windows 10 Access 2003
    Join Date
    Dec 2024
    Posts
    9

    Is there a program out there that can be used to do Access Queries and have a UI as shown?


    I am not sure if this is the place to post such a question but since it relating to Access queries I thought I would post it here (and its my first post).

    I have been trying to look for an Access database 'query viewer' that has a user interface (UI) similar to what I have in the following image:

    Click image for larger version. 

Name:	Database Query GUI Design.jpg 
Views:	41 
Size:	37.9 KB 
ID:	52461

    The grey boxes (apart from the Choose database field) would be fields that one can input known data. One would choose any one of the fields to input the data. When one clicks 'SUBMIT' a query would be made to the chosen database and all the related records to that input would populate the various fields from the database itself. Obviously this would be done after mapping the various fields to the access database fields.

    I am hoping that there is a program out there that does something very similar to what I want. Using the query function in MS Access is clunky and I would like something more streamlined and easier to use for those who have little to no experience of MS Access. The database(s) would be copied to the folder where this theoretical program is located. The 'Choose database' field would automatically populate with however many databases are in the folder.

    Is what I am looking for actually out there somewhere or is it something that would have to be created from scratch?
    Attached Thumbnails Attached Thumbnails Database Query GUI Design.jpg   Database Query GUI Design.jpg  

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I don't understand why users would even "choose" a database. How many databases are there and why are there multiple databases?

    Sorry, have to "roll your own" whatever this tool is you envision.
    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
    judgedredd is offline Novice
    Windows 10 Access 2003
    Join Date
    Dec 2024
    Posts
    9
    I have been asked to help a freind who was screwed over by his former web dev. This friend had multiple websites hosted on his home server. There were orders processed via some of these websites (totaling over 34,000 orders spread over 3-4 databases/websites) . Each website saved the purchases in a MySQL database. The interface (the code itself) between the site order page and the database was either erased intentionally by the former web dev or it was corrupted. My friend has to show any order returns to the Canadian Revenue Agency in his business tax returns and the original order data resides in one of the databases from these sites (which are no longer available on the net).

    I have been able to extract all the users and their orders from these various databases and have put them into their own CSV files. These were then converted to Excel spreadsheets which were then imported into Access. I did NOT consolidate them as each database is from a particular website. Hence why the drop down menu.

    Even though the data is now available in MS Access, having to create queries every time one wants to find out who ordered what when a return comes in is tedious in this program. I need a simple interface where one field can be input and everything relating to that input populates the other fields.
    Last edited by judgedredd; 12-03-2024 at 12:05 AM.

  4. #4
    judgedredd is offline Novice
    Windows 10 Access 2003
    Join Date
    Dec 2024
    Posts
    9
    this was a duplicate post.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Simple is a matter of perception.

    This is what forms and reports are for. And code (VBA or macros). Or even the intrinsic search/sort tools on the ribbon.

    If you want to build a form with a search/filter capability review http://allenbrowne.com/ser-62.html

    In your case, there is the added twist of determining which database (table?) needs to be referenced. Do they all have the same structure?

    You said "imported into excel", did you mean Access?
    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.

  6. #6
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2021
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,740
    OVERVIEW:
    I assume each "Database" is actually now a table in a single msaccess database.
    You could select the "database" (table) via a combobox, which would become the form's recordsource.
    Then fill out as many of the gray text boxes as you wish.
    Then when the submit button is clicked, create a query string in VBA that filters the form's recordsource table, using the gray text box values.

  7. #7
    judgedredd is offline Novice
    Windows 10 Access 2003
    Join Date
    Dec 2024
    Posts
    9
    Thanks June7 for spotting the error (importing into 'excel' instead of Access). This has now been corrected.

    As to the structure of thew database they are all different.

  8. #8
    judgedredd is offline Novice
    Windows 10 Access 2003
    Join Date
    Dec 2024
    Posts
    9
    Quote Originally Posted by davegri View Post
    OVERVIEW:
    I assume each "Database" is actually now a table in a single msaccess database.
    You could select the "database" (table) via a combobox, which would become the form's recordsource.
    Then fill out as many of the gray text boxes as you wish.
    Then when the submit button is clicked, create a query string in VBA that filters the form's recordsource table, using the gray text box values.
    No. Each database has its own CSV/Excel file. The fields are different in the databases which is why they have stayed separate. VBA is beyond me at this time.

  9. #9
    judgedredd is offline Novice
    Windows 10 Access 2003
    Join Date
    Dec 2024
    Posts
    9
    June7, thanks for the link to that search form example. I can see how the design I have at the top of this thread can be implemented using the forms module in Access.

  10. #10
    Edgar is offline Competent Performer
    Windows 8 Access 2016
    Join Date
    Dec 2022
    Posts
    309
    I uploaded your screenshot to ChatGPT and had it generate the tables, some records and the strings for the code in the way Access wants them. Never did something like this, but I guess it should be similar to what you want to do.

    I hope it helps. Let me know what you think.
    Attached Files Attached Files
    Please click on the ⭐ below if this post helped you.


  11. #11
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Didn't you say data was imported into Access?

    Possibly you will need a form for each db. Perhaps a menu form for selecting db and opening appropriate search form.

    If you don't want to delve into VBA, look into macro coding and possibly parameterized query, also demonstrated in Allen's article.

    The more "user friendly", the more code.
    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
    judgedredd is offline Novice
    Windows 10 Access 2003
    Join Date
    Dec 2024
    Posts
    9
    Quote Originally Posted by Edgar View Post
    I uploaded your screenshot to ChatGPT and had it generate the tables, some records and the strings for the code in the way Access wants them. Never did something like this, but I guess it should be similar to what you want to do.

    I hope it helps. Let me know what you think.
    That's an interesting way to do it!!!

    Thanks for this. I will try it out.

  13. #13
    judgedredd is offline Novice
    Windows 10 Access 2003
    Join Date
    Dec 2024
    Posts
    9
    Thanks June7 for your input. I will try Edgar's way first.

  14. #14
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Quote Originally Posted by judgedredd View Post
    The database(s) would be copied to the folder where this theoretical program is located. The 'Choose database' field would automatically populate with however many databases are in the folder.
    So you have imported each dataset to its own Access file so now you have multiple Access database files to work with. Can be dealt with. Just means your frontend GUI will have to establish multiple backend links.
    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.

  15. #15
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2021
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,740
    Quote Originally Posted by judgedredd View Post
    No. Each database has its own CSV/Excel file. The fields are different in the databases which is why they have stayed separate. VBA is beyond me at this time.
    I don't see why you couldn't put all those tables in one database.

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 08-02-2023, 04:13 PM
  2. Replies: 2
    Last Post: 02-25-2022, 05:37 PM
  3. Replies: 5
    Last Post: 12-31-2021, 12:25 PM
  4. Replies: 11
    Last Post: 03-09-2018, 10:18 AM
  5. Program a 30-day trial into my Access Program?
    By genghiscomm in forum Programming
    Replies: 1
    Last Post: 05-26-2011, 02:14 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