Results 1 to 4 of 4
  1. #1
    dhruv is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2018
    Posts
    1

    Question Cannot Program/Write VBA Code in Visual Basic Environment for Microsoft Access

    Recently, I was trying to write VBA codes in Microsoft Access. However, I am unable to do so.



    Suppose i type

    "Me.txtTest"

    The font becomes Red as if Microsoft Access is not recognizing it.

    Can anyone help me out?

    Thanks

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,716
    Your question has no context.
    Where did you do this
    Code:
    Suppose i type
    
    "Me.txtTest"
    Have you checked out some youtube videos on intro vba? or Google?

  3. #3
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,954
    Check for missing references in the VB Editor.
    If there are any marked MISSING, browse to & restore the reference
    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

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Me. qualifier only works in modules behind forms and reports, not general modules.

    It's shorthand reference for the form or report the code is behind.
    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.

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

Similar Threads

  1. Replies: 1
    Last Post: 08-23-2017, 10:21 AM
  2. Microsoft Visual Basic for Applications
    By jtradergp13 in forum Access
    Replies: 1
    Last Post: 01-25-2017, 10:30 AM
  3. How do I open Access 2007 from a Visual Basic program?
    By Dick_in_Dallas in forum Access
    Replies: 3
    Last Post: 11-23-2014, 01:36 PM
  4. Replies: 1
    Last Post: 10-01-2014, 06:21 AM
  5. microsoft visual basic REFERENCE
    By marianne in forum Access
    Replies: 0
    Last Post: 04-01-2009, 08:06 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