Results 1 to 3 of 3
  1. #1
    hendrikbez is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    138

    Method or data member not found

    I have a form, that I am using pop date chooser, it is working, but I am trying to put focus on the textbox, so that when I click the dte, it should show up when I press the use date button

    When I am trying to compile I am getting this error.

    "Method or data member not found" on this line
    .focus is mark in blue.



    I do not know why and how to fixed this
    Code:
     Me.DateOut.focus
    Here is all the code for this button

    Code:
    Private Sub Date1_Click()
    Me.DateOut.focus
    DoCmd.OpenForm "CalendarPopUp"
    Forms!CalendarPopUp!vFormName = "Main"
    Forms!CalendarPopUp!vFieldName = "DateOut"
    End Sub

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    It is not focus, it should be SetFocus.

  3. #3
    hendrikbez is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    138
    Quote Originally Posted by amrut View Post
    It is not focus, it should be SetFocus.
    Thank you, it is working

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

Similar Threads

  1. Compile Error: Method or data member not found
    By JustinC in forum Programming
    Replies: 4
    Last Post: 11-18-2014, 10:25 AM
  2. Method or Data Member not found
    By johnnyBQue in forum Programming
    Replies: 4
    Last Post: 11-03-2014, 07:15 AM
  3. Method or Data member not found error
    By junwatts in forum Access
    Replies: 1
    Last Post: 09-27-2013, 08:49 AM
  4. Method or data member not found
    By papa yaw in forum Programming
    Replies: 5
    Last Post: 12-17-2012, 02:19 PM
  5. Compile Error: Method or data member not found
    By subtilty in forum Programming
    Replies: 5
    Last Post: 02-09-2012, 07:56 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