Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    Sheba is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    239
    hey June7 sorry for the delay. I had previously passworded the project that is why it wouldn't let me copy and paste the source code in another dbase. Anyway I got around it but had major challenges stripping down the database. I decided to re-recreate the controls that were referenced in the "Method or data member not found" error message. I have represented them in the attachment.



    Many thanks for your help.
    Attached Files Attached Files

  2. #17
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    PaediatricForm Current event errors on Me.placedBy. There is no control named placedBy. Same for venousPlaced. Use bang (!) instead of dot to refer to field in the RecordSource.

    Me!placedBy
    Me!venousPlaced

    Then the procedure is missing End If line.

    You use .Text property for cmdSRCHBOX. I have never used .Text. Can probably remove it. Value is the default property for data controls.

    Suggest you give controls meaningful names.
    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. #18
    Sheba is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    239
    Thanks June7.
    1) placedBy and venousPlaced are not control names but field names in the Paediatric table...

    2) the controls are unbound and only these two field names are giving me problems. I didn't use Bang(!) for the others are they are fine.

    3) I remember that after creating the table and linking it to the Front End, I realised two columns were missing - venousPlaced and placedBy. I then went into the database, added the two columns. Went back to my front End, deleted the old link to that table and relinked it. Perhaps that is the reason why it does not see the fields?

  4. #19
    Sheba is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    239
    I think I fixed it! I deleted the links to ALL the tables from my FrontEnd, saved and exited. I then duplicated the offending table and renamed it, saved and exited. I then went back to the Front End and relinked to ALL the tables (plus the new, minus the old). Debugging has moved from those lines of code now. So here's hoping...

  5. #20
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    The edits I described worked for me. Forms open without error.

    Glad you found a solution.
    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.

  6. #21
    Sheba is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    239
    hi June, I have about 40 option controls on the form and only these two fields were giving me problems. I used the bang as you suggested but I still got the error message. Anyways ts'all good now. Thanks for your help

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

Similar Threads

  1. Replies: 3
    Last Post: 01-23-2014, 07:49 AM
  2. Access 2007 Runtime Compiler
    By burrina in forum Security
    Replies: 9
    Last Post: 01-23-2013, 06:20 PM
  3. Compiler error: Method or member not found
    By JosmithTwo in forum Programming
    Replies: 3
    Last Post: 11-26-2012, 07:10 AM
  4. Replies: 0
    Last Post: 07-16-2012, 05:42 AM
  5. Compiler WRONG example-DB
    By pacala_ba in forum Access
    Replies: 12
    Last Post: 04-18-2009, 01:00 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