copying & pasting forms

  • Thread starter Thread starter karim
  • Start date Start date
K

karim

Hello All,
I have a form that when I copy and past it into the same database,
some of the functions do not work. I have a code when you open the form, it
inserts the Date, Time, and User name for you. But when I paste, the new form
only inserts the user name, no Date or Time. I tried to change the field name
instead "text1", I named it to something else, but that did not work either.
so any help would be appreciated. Thanks
 
There's a good chance your code is referencing the name of the original form,
this would cause your code not work.
 
This may be due to the incomplete way the Name AutoCorrect feature keeps
track of what your field names used to be. Since this works only partially
(and is buggy), it could give the kind of results you describe.

Suggestions:

1. Make sure Name AutoCorrect if off.
Explanation:
http://allenbrowne.com/bug-03.html

2. Perform a compact/repair.

3. Then ensure you are not using any reserved field names such as Date and
Time. Here's a list of the bad names to check your tables and queries and
their fields, captions and aliases against:
http://allenbrowne.com/AppIssueBadWord.html

4. For any field you have ever given a different name in your table, make
the same change in the queries, forms, reports, RecordSource, RowSource,
macros and code.

5. Compact/repair again.

If you are still stuck, there's more detail here:
http://allenbrowne.com/recover.html
 
Back
Top