Results 1 to 6 of 6
  1. #1
    alexsmith91 is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2023
    Posts
    17

    Question Access Forms only connecting through live SQL tables?


    Hi,
    • Can I create forms which open sub forms based on the ID of a record selected, which in-turn open sub forms for the selected ID only while connecting to a live SQL table? No linking of tables, no pass-through queries. Only for reading the data, not writing.
    • I understand that I need to capture the value of that id as "Me. ID". Store that value in the record set
    • Open the subform, and then set the values of the subform with that record set?


    Let me know if these are the high level steps that can be done.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    it's best to link the tables from sql, then ALL data is live.

    connect the subform properties to the master form field: ID
    LINK MASTER FIELDS = ID
    LINK CHILD FIELDS = ID

    then the subform will automically fill in the ID value.

  3. #3
    alexsmith91 is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2023
    Posts
    17
    Like I mentioned, I wont be able to link the tables from SQL. Though I understand that is the best process.

    Quote Originally Posted by ranman256 View Post
    it's best to link the tables from sql, then ALL data is live.

    connect the subform properties to the master form field: ID
    LINK MASTER FIELDS = ID
    LINK CHILD FIELDS = ID

    then the subform will automically fill in the ID value.

  4. #4
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    Quote Originally Posted by alexsmith91 View Post
    Like I mentioned, I wont be able to link the tables from SQL. Though I understand that is the best process.
    This is going to sound a bit daft, but if you can't link to the tables how do you propose to get the data from them?
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  5. #5
    alexsmith91 is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2023
    Posts
    17
    I had read it somewhere that you can create a data connection with details about server/db name etc and then you can create a a recordset which would store the data from your sql.


    Quote Originally Posted by Minty View Post
    This is going to sound a bit daft, but if you can't link to the tables how do you propose to get the data from them?

  6. #6
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    same as linking tables. Same info, same tables.

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

Similar Threads

  1. Replies: 2
    Last Post: 08-28-2023, 01:35 PM
  2. Connecting to Oracle from Access Forms
    By glpraveenkumar@gmail.com in forum Forms
    Replies: 1
    Last Post: 07-11-2019, 04:26 AM
  3. Connecting Forms and Query
    By AVINANAIR in forum Access
    Replies: 7
    Last Post: 04-19-2019, 01:25 AM
  4. Connecting Forms to a Report
    By jbates in forum Forms
    Replies: 4
    Last Post: 08-15-2014, 02:22 AM
  5. Replies: 6
    Last Post: 07-18-2014, 11:35 AM

Tags for this Thread

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