forms in forms

A

alvin Kuiper

Hi
I have a form with another form inside, this second form is from start
visible=false when i make a choise in a combobox then the form get
visible=true and show what i want. this works fine.

But inside the second form (the hidden from start) i have this code:
Me.RecordsetClone.MoveLast
Me.lbl1.Caption = Me.RecordsetClone.RecordCount

And in this line i get an error bescause i dont have any records yet, i just
get my records when i have make my choise in the forst forms combobox can
some please help with this problem.

Regards

Alvin
 
R

ruralguy via AccessMonster.com

I recognize that code! ;)

Try:
If Me.RecordSet.RecordCount > 0 Then
Me.RecordsetClone.MoveLast
Me.lbl1.Caption = Me.RecordsetClone.RecordCount
End If
 
A

alvin Kuiper

Thanks
Its working
I didn't know rhat i could use try, i use it in VB
but i din't know i could use it in access

alvin


"ruralguy via AccessMonster.com" skrev:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top