G
Guest
I am using Access 2003/Win xp pro/ SQL Server 2000
I have a form in my access project that doesn't seem to work properly. I am
using a combo box to select a job/shipping address and would like it to fill
the fields once the job/ shipping address is selected. The only way I found
for it to populate the fields is to do a requery or refresh. If I do this
the record count goes back to the first record. I would like for it to stay
on the current record.
I have set a variable equal to the bookmark property before I update the
combo box and then after the combo box updates I set the bookmark property to
my variable. For some reason, when I add a new record with this code it goes
to the previous record. For example, if I am adding record "10" and insert a
job/shipping address after the before and after update events of the combo
box fire, I end up on record "9". The bookmark seems to be working if I
change the job/shipping address. I only have a problem with insert new
records. I have also tried using the goto record command for the Primary
key, but I get error messages telling me this command is not available.
Any help is greatly appreciated..
I have a form in my access project that doesn't seem to work properly. I am
using a combo box to select a job/shipping address and would like it to fill
the fields once the job/ shipping address is selected. The only way I found
for it to populate the fields is to do a requery or refresh. If I do this
the record count goes back to the first record. I would like for it to stay
on the current record.
I have set a variable equal to the bookmark property before I update the
combo box and then after the combo box updates I set the bookmark property to
my variable. For some reason, when I add a new record with this code it goes
to the previous record. For example, if I am adding record "10" and insert a
job/shipping address after the before and after update events of the combo
box fire, I end up on record "9". The bookmark seems to be working if I
change the job/shipping address. I only have a problem with insert new
records. I have also tried using the goto record command for the Primary
key, but I get error messages telling me this command is not available.
Any help is greatly appreciated..