J
Joan Edington
Hi,
I feel I'm getting into this Access VBA thing, thanks to help from
various folk on this NG, but have once again struck a problem I can't
get round.
I have a form to hold helpdesk call details from members of staff. The
first field is the name of the person calling which until the other
day was typed free-hand. All was normal with the Access world.
Since there are not too many members of staff and I also had a table
of details such as telephone numbers, location etc for everyone, I
changed the Name field on my call form to a combo box looking up my
staff details table.
My problem arises when I delete the last record. I've always known
Access to happily delete the record and leave an empty record, with no
allocated autofill number, ready for the next entry. That is what
happened until I made the first field a combo box anyway.
Since then, if I delete the last record, a new record is opened, the
autofill number allocated and the cursor left on the combo box.
Even odder is the fact that ,if I delete the last record in datasheet
view by selecting only that line, the same thing happens but, if I
select the record and the blank unallocated autofill line, the delete
works OK as expected.
As it stands, if I then create a new record, the oddly created one
stays in the database, blank. If I use that one for the new entry next
time round it is no longer a new record so doesn't carry out some of
the processing required.
Is there some way to get round this automatic creation of a new record
when I delete the last one?
Puzzled,
Joan.
I feel I'm getting into this Access VBA thing, thanks to help from
various folk on this NG, but have once again struck a problem I can't
get round.
I have a form to hold helpdesk call details from members of staff. The
first field is the name of the person calling which until the other
day was typed free-hand. All was normal with the Access world.
Since there are not too many members of staff and I also had a table
of details such as telephone numbers, location etc for everyone, I
changed the Name field on my call form to a combo box looking up my
staff details table.
My problem arises when I delete the last record. I've always known
Access to happily delete the record and leave an empty record, with no
allocated autofill number, ready for the next entry. That is what
happened until I made the first field a combo box anyway.
Since then, if I delete the last record, a new record is opened, the
autofill number allocated and the cursor left on the combo box.
Even odder is the fact that ,if I delete the last record in datasheet
view by selecting only that line, the same thing happens but, if I
select the record and the blank unallocated autofill line, the delete
works OK as expected.
As it stands, if I then create a new record, the oddly created one
stays in the database, blank. If I use that one for the new entry next
time round it is no longer a new record so doesn't carry out some of
the processing required.
Is there some way to get round this automatic creation of a new record
when I delete the last one?
Puzzled,
Joan.