Results 1 to 5 of 5
  1. #1
    mainerain is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2018
    Location
    Maine, USA
    Posts
    146

    vba acting weird

    When I try to enter an IF statement the "IF" turns red like it's in error.



    I type "if" then hit the space bar and the cursor goes back to the "f" and the "if" goes red. Weird. Any ideas?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Post the full code you are trying. Keep typing in code and then copy/paste here. Or just type it here in post.
    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
    mainerain is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2018
    Location
    Maine, USA
    Posts
    146
    I don't get it. I went back to duplicate it and it works fine. At the moment anyways. I'll try to pick up the situation if it happens again.

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,979
    When you say the cursor goes back, that suggests to me there was a form running with a timer event.
    Perhaps when you returned to the code, that form was no longer open?
    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

  5. #5
    mainerain is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2018
    Location
    Maine, USA
    Posts
    146
    That's possible, Thanks. I'll watch for that.

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

Similar Threads

  1. VBA Editor acting strangly
    By NJ-Tom in forum Access
    Replies: 13
    Last Post: 09-30-2016, 08:49 PM
  2. 2 similar queries acting different....
    By CQCDave in forum Queries
    Replies: 16
    Last Post: 04-29-2015, 01:05 PM
  3. Chart Not acting as you would expect
    By techtony in forum Reports
    Replies: 8
    Last Post: 08-08-2014, 02:22 PM
  4. query is acting up
    By kwooten in forum Queries
    Replies: 20
    Last Post: 12-21-2011, 12:50 PM
  5. Update Query acting up
    By compooper in forum Queries
    Replies: 1
    Last Post: 07-04-2011, 12:27 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