Results 1 to 5 of 5
  1. #1
    Middlemarch is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2015
    Posts
    365

    Errors after importing Form

    Two of us use the same DB and I've made some changes and sent the other party a Form via Access External Data-New Data Source.



    Now instances of "." need to be changed to "!" and references to controls need "Me!" added. Only his his DB, mine is still okay.

    Perhaps someone knows why this is, and if there's any way to fix it so each one doesn't need changing ?

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Please tell us more about "Two of us use the same DB"...details please.
    Common Backend? Same/different Frontend? Why separate databases specifically-if that is your situation?

    You can SaveAsText the form(s) involved. You can use a text editor to change Me. to Me! etc (or whatever...) as required. Once finished with the editing, you can use LoadFromText to load the revised form. Google for examples.
    Last edited by orange; 04-15-2024 at 10:16 AM. Reason: spelling

  3. #3
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,803
    The bang operator provides late bound access to the default member of the object that precedes it. The dot is used to early bind the reference(s).
    Put another way, if your form control name is "txtName" and you code "Me!txtNaem" and compile the code, the mistake will not be caught; not until a line containing that mistake is executed. That's why I would never use Me! over Me. If however you use Me.txtNaem and compile, the mistake will be caught.

    If that code won't work on one pc without using ! then it suggests to me there is some sort of library reference problem. Another possibility would be that the code reference and control name are out of sync on the copied form, but I don't see how using ! should resolve that. IMO if the other party needs a form you have created or modified, they should be the one pulling it in to their db, not you sending it.

    This also makes me wonder how the distribution of front end objects is being handled. If the other party is using the same front end (the db is split, yes??) then that is what should be distributed.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    Middlemarch is offline Competent Performer
    Windows 10 Access 2019
    Join Date
    Mar 2015
    Posts
    365
    Thanks for replies. Looks like there's no magic fix. I take from the above I'm using "early biding" and "late binding" is what's required. And changes must be made, possibly in a text editor.
    It happens as something is "out of sync" or a reference problem. They're separate databases as we're in two different countries.
    There is no backend, it's one same db, but with one Form changed. And that won't work, we can conclude? So I think rather than sending just the Form I'll send the whole db.

  5. #5
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,803
    Your db's should be split; no question. Corrupt that db and you may lose everything, including your data.

    If you need to send a db, send the front end (fe) with the forms/reports/queries and vb project. VB editor has a Find/Replace feature so I don't think you need a text editor. You could change one using F&R and send that. It's still a mystery to me why one db needs ! vs . unless maybe the ! db is missing a reference for the vb project.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Type Conversion Errors Importing From Excel Workbook
    By deekadelic in forum Import/Export Data
    Replies: 18
    Last Post: 06-18-2016, 08:07 AM
  2. Import errors when importing txt files
    By lenk73 in forum Access
    Replies: 4
    Last Post: 04-17-2015, 02:39 PM
  3. Replies: 2
    Last Post: 06-04-2014, 11:12 AM
  4. Replies: 3
    Last Post: 05-01-2014, 02:27 PM
  5. Errors while importing data
    By imran688 in forum Import/Export Data
    Replies: 5
    Last Post: 10-29-2012, 03:24 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