Results 1 to 7 of 7
  1. #1
    willkr is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2023
    Posts
    110

    Using Link Criteria in opened form

    OK, I'm making progress. Here's my next question:



    I'm opening a new form with the following code

    stDocName = "frmShowSavingsDepositEntries"
    stLinkCriteria = "[Savings Deposit Number]=" & Me![Number]
    DoCmd.OpenForm stDocName, , , stLinkCriteria

    In the new form, how do I get to the contents of stLinkCriteria?

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2019
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Is form frmShowSavingsDepositEntries bound to a table/query ?
    Does the form have a control that is bound to a field in the table/query called "
    Savings Deposit Number" ?
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    willkr is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2023
    Posts
    110
    Yes and Yes

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2019
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Can you post a copy of your db
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  5. #5
    willkr is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2023
    Posts
    110
    Bob,
    Thanks, but I got the info I needed.

  6. #6
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2019
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Quote Originally Posted by willkr View Post
    Bob,
    Thanks, but I got the info I needed.
    Good. Care to share it with us.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  7. #7
    willkr is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2023
    Posts
    110
    Sure,
    I have been chasing a bug that was causing an error. I've been at it for two days. However, I was looking at the code and the problem was with the select statement for the sub-form. I'm learning a little bit each day.

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

Similar Threads

  1. Replies: 10
    Last Post: 06-09-2017, 02:33 PM
  2. Replies: 5
    Last Post: 03-27-2017, 07:48 PM
  3. Replies: 8
    Last Post: 09-07-2016, 08:52 AM
  4. Replies: 9
    Last Post: 09-18-2014, 10:16 AM
  5. Link Criteria no working when opening new form
    By ETCallHome in forum Forms
    Replies: 1
    Last Post: 06-17-2011, 05:26 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