Help again with me.currentrecord

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
In myform i have 2 buttins on back and one forward
and i have to label with
cuurent record
and record count
so i can write you are on 1 record of 10 record
and if i'm on the first record my back buttons are enabled=false
and if i'm on the last record my forward button are enabled=false
all works fine.

Just not in one case the form i have is inside another form and in the main
form i have combobox the cahnge the value i see in the second form.
In start every thing seems to work, but if i have maybe just 1 record in a
recordset my current record say 1 and last record says one, this is ok but if
i then go up in the main form and in the combobox chnage to see some thing
else maybe with 2 records then my current record say 1 and my recordcount
says 2 theis is also coorect , now it comes then i click on my next record
and in this event i have:

DoCmd.GoToRecord , , acNext
lblnudat.Caption = Me.CurrentRecord

now my lbnudat.caption = 3
but i just have to records ??
When may form startup it says currentrecord = 1
and when i click the button next my currrentrecord say 3

But remark its only if my first choise was a recordset with 1 record
if my first choise is the recordset with 2 records all works fine , so
I DON'T UNDERSTAND WHAT I DO WRONG HERE????

Alvin
 
Back
Top