Page 3 of 3 FirstFirst 123
Results 31 to 37 of 37
  1. #31
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Sorry, suffering head cold for 2 days. Not thinking clearly.

    If DLookup("AccessLevelID", "tblAccess", "UserID='" & lUser & "'") <> 1 Then
    If IsNull(DLookup("UserID", "tblAccess", "CategoryID=450 AND UserID='" & lUser & "'")) Then
    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.

  2. #32
    Sheba is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    239
    already Step debugged and variables are set. where multiple catIDs are assigned to a userID, DLookup is pulling only the first value. I want to reference categoryID in tblAccess directly because it occurs uniquely.

  3. #33
    Sheba is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    239
    oh just seen your last post. I'll read up and post appropriate update.

    Thanks

  4. #34
    Sheba is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    239
    June7 sorry to hear about your cold. hope you feel better soon and also hope I'm not worsening it for you
    I'm abit confused by your lastpost. what would this part be referring to...?

    AND UserID='" & lUser & "'"))

  5. #35
    Sheba is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    239
    I get it! criteria is, userID for the specific CategoryID should be same as user's loginID. It has worked for one user who has multiple forms to access. Thank you very much. I'll try on the others. Should work.

  6. #36
    Sheba is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    239
    I also took out the apostrophe

  7. #37
    Sheba is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    239
    yup tis working thanks again June7

Page 3 of 3 FirstFirst 123
Please reply to this thread with any new information or opinions.

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