Do Loop

  • Thread starter Thread starter Max
  • Start date Start date
M

Max

I am using a do loop to check for the next empty text box in my subform. I
know the text boxes are null because if I use Debug.Print
frm.Controls("txb_name" & CStr(cnt)) it shows null . Whats the prob?


dim cnt as long
cnt =0
Do
cnt = cnt + 1
Loop Until frm.Controls("txb_name" & CStr(cnt)).Value = Null
 

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

Back
Top