I am using Access 97. What happens is this was developed
for this person to build a catalog for their department.
The first step is to get the file with the previous
catalog information. It includes sku, section it was in
and the item description. Once this is imported the user
can then move sku's around, add sku's, delete sku's,
whatever he wants to build the new catalog. This error
occurs when he tries to do anything with the sku's. For
example, when you open the form that allows you to move a
sku, you first receive an error that says: Error
inserting: NO current record, Error #, 3021.
***This error usually occurs when your code tries to move previous to .BOF,
beyond .EOF or attempts to work with or move to a record when .BOF and/or .EOF
is True. Is there some such code that is being executed in the form's Open, Load
or Current event? How is the "previous sku" information being imported? Is the
form based only on SKUs that are most recently imported, or on all SKUs? There
are a lot of questions that would need to be answered before a "diagnosis" could
be made.
This one
however, goes away when I tried to import the data myself
starting fresh. But I still don't think he should get
that one. The one I have been talking about though comes
after that. Once you say ok and click off the record you
receive a message stating: "WRITE CONFLICT This record
has been changed by another user since you started
editing. If you save the record, you will overwrite the
changes. Save the previous changes to the clipboard to
view previous changes." Then you have the option to Save
Record, Copy to Clipboard or Cancel. If you select Save
Record it's fine, but if you Copy to Clipboard to View
previous changes it says: "You can't save this record at
this time. Microsoft may have encountered an error. If
you close your changes will not be saved." When you press
ok it closes the form.
***This usually occurs when you have made modifications to a record in a form
and, before those modifications have been saved to the table, you either open a
second form based on that record and make changes or you run code that makes
changes to that record. The resolution, in that case, is to make sure that you
commit the changes made in the form before opening the second form or running
such code:
If Me.Dirty then _
Me.Dirty = False
This is the second catalog he has used this database for
and it was fine last time and started out to be fine this
time. So, that's what I don't understand. I did the
coding for the database so I know it worked. The sku is a
valid sku, I've already checked that out.
***I suppose there's a possibility that your project is suffering from
corruption of some sort. If it is corruption in the VBA project, you might be
able to recover using the /decompile command-line switch (be very careful with
this one and if you need more info on this, just say so) and if it's in tables,
forms, etc., I recommend visiting the following page at Tony Toews' web site:
Corrupt Microsoft Access MDBs FAQ
http://www.granite.ab.ca/access/corruptmdbs.htm
If nothing above seems to help, go ahead and post a reply to this message with
more details on what is happening, and when, and we'll try to work it out.