Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 33
  1. #16
    sheckay is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    May 2022
    Posts
    73

    So that one box is there to accept the secret code and then display the initials after the code is entered? If so that would be great. I just didn't see that in what you sent over. I just double checked. When I open that form and enter a code, when I press enter nothing happens. I just see asterisks.

  2. #17
    sheckay is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    May 2022
    Posts
    73
    Sorry. I thought that was a separate forum

  3. #18
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Quote Originally Posted by sheckay View Post
    Sorry. I thought that was a separate forum
    I assume that was a reply to my crosspost message?
    If so, yes they are separate forums, but etiquette on all forums is to mention you have posted elsewhere with a link to where. That way you do not waste people's time giving the same info in different forums.
    Continued crossposting will generally mean a lot of members will ignore your posts.
    Up to you.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  4. #19
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,413
    I just see asterisks.
    That's probably because the downloaded file is not in a trusted location on your machine.

    Click image for larger version. 

Name:	TLOC .png 
Views:	21 
Size:	18.5 KB 
ID:	51389

    Another possible fix:

    Click image for larger version. 

Name:	Prop.png 
Views:	21 
Size:	42.1 KB 
ID:	51390
    Last edited by davegri; 01-26-2024 at 05:42 PM. Reason: added property image

  5. #20
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    @sheckay
    All you appear to be describing is a login system using a password (secret key) only.
    Much less secure than a username/password combination

    Even though the workstations are shared and therefore users don't login to the network, there is no reason why they shouldn't login to your app with user name & password.
    Whatever you do, make sure any stored password/secret ley is encrypted for security reasons

    Have a look at my example app: Password Login (isladogs.co.uk)
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  6. #21
    sheckay is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    May 2022
    Posts
    73
    Quote Originally Posted by Welshgasman View Post
    I assume that was a reply to my crosspost message?
    If so, yes they are separate forums, but etiquette on all forums is to mention you have posted elsewhere with a link to where. That way you do not waste people's time giving the same info in different forums.
    Continued crossposting will generally mean a lot of members will ignore your posts.
    Up to you.
    I apologize. I wasn't aware of that kind of an issue. I will modify that other post so that everyone is aware. Thank you

  7. #22
    sheckay is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    May 2022
    Posts
    73
    OK, thanks I will try that right now

  8. #23
    sheckay is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    May 2022
    Posts
    73
    Wow!!! I had to do what you recommended (enabling Macros), but though a different path. And once I did, I could see that you really put something together for me. Wow!!! Thank you. And after checking out how it works, I created a table that I connected the text box to. Then I duplicated the text boxes and created other fields in the new table. And then I created multiple records with multiple signatures. And everything is working like I need it to. Wow!!! Then I went to the user/signature file and I edited a user's password/code to see if that would mess up the existing signatures for that user. And it didn't. Wow!! Thank you!!! I can't thank you enough!!!

  9. #24
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    @sheckay
    Its not clear who your last two replies were directed at. Always best to include the username as I have here if your answer is directed at a particular person(s)
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  10. #25
    sheckay is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    May 2022
    Posts
    73
    I'm running into one problem. That problem is that after an entry is made in the box and it has initials in it. If anyone clicks on that box again, the initials disappear. And they don't come back. So, I modified the form's "on current " so that if the text box is null, it's not locked, but if it is not null it is locked. I also changed the backcolor to reflect whether the box is locked or not. And once that's in place (the field has initials in it, and is locked) if anyone clicks on that box the initials still disappear, and the field is locked. Is there a way to prevent the initials from disappearing?
    I'm guessing that the OnEnter code is still executing, even though the box is locked?

    Here's my OnCurrent code:
    Private Sub Form_Current()
    If IsNull(Text2) Then
    Text2.Locked = False
    Text2.BackColor = vbWhite
    Else
    Text2.Locked = True
    Text2.BackColor = RGB(200, 200, 200)
    End If
    End Sub

  11. #26
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,654
    I'll have to look at it.


    in the mean time try

    Code:
    Private Sub Form_Current()
    
    
    Me.Text2.Enabled = IsNull(Me.Text2)
    
    
    End Sub
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  12. #27
    sheckay is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    May 2022
    Posts
    73
    OK, what I've tried so far is changing the on Enter to:

    Private Sub Text2_Enter()
    If IsNull(Text2) Then
    Text2.Locked = False
    Text2.BackColor = vbWhite
    Else
    End
    End If
    Me.Text2 = ""
    Me.Text2.InputMask = "password"

    End Sub

    And that works. But when you click out of it, the onExit code kicks in and thinks the initials are the entry being made for the secret code

  13. #28
    sheckay is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    May 2022
    Posts
    73
    Wow!! You're good!! That did the trick!!! Thank you!!!

  14. #29
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Might also want to give your controls meaningful names?
    Whilst you might not have many controls on that form, getting into the habit of Textnn is a bad one to have.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  15. #30
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,654

    try this one


    Attached Files Attached Files
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

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

Similar Threads

  1. VBA Project Signing
    By isladogs in forum Modules
    Replies: 2
    Last Post: 05-04-2023, 03:01 PM
  2. Visitors signing in and out DB
    By Roza in forum Access
    Replies: 6
    Last Post: 04-20-2016, 09:46 AM
  3. Signing in
    By ictcrystal in forum Forms
    Replies: 6
    Last Post: 04-03-2015, 04:10 PM
  4. Replies: 6
    Last Post: 02-27-2013, 04:43 PM
  5. Multi Layer Form
    By macftm in forum Forms
    Replies: 4
    Last Post: 05-06-2012, 09:59 AM

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