Requery

S

Stockwell43

Hello,

Quick question:

On my form I have a requery button to update information. When clicked, the
database go back to the first record. Is there a way that, after the requery
is clicked, it stays on the current record?

Thanks!!
 
O

Ofer Cohen

Why do you save the record using Requery?

You can use

If Me.Dirty Then
Me.Dirty = False ' will save the record
End if
 
S

Stockwell43

I wasn't intending to save it with the requery, after information was
inputted I just wanted to refresh the screen to show the updated dollar
amount not go back to the first record. What does "Dirty" do? Will that
refresh the current record and stay on the current record?
 
S

Stockwell43

I tried it and it works great! This is exactly what I was looking for. Thank
you Ofer!!!!
 
Top