Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error: Method or data member not found, but field exist

Status
Not open for further replies.

smsmail

Programmer
Aug 11, 2010
105
US
Hello,

I am getting a compile/runtime error on a field (LogID) that exist on the table, however the field is not displayed on the bound form. My program refers to other fields that are not displayed on the form but exist on table, and these fields do not cause a compile/runtime error.

Would anyone know why this error is occuring?

Thanks so much for your help!


Code:
If Not IsNull(Me.OpenArgs) Then
       ViewData = True
                  
       If Not IsNull [b](Me.LogID) [/b] Then
          strDataPathName = Me.LogID
       End If
       
       If Not IsNull(Me.MailingDays) Then
          strMailingDays = Me.MailingDays
          Call Move_Days
       End If
       
    End If



 
the field is not displayed on the bound form
Have you tried Me[!]![/!]LogID instead ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks so much PHV! It works.

Have a great day!

smsmail

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top