Button in form header

M

mcescher

Help, I must be missing something basic (pardon the pun)

Windows XP Pro, Access 2002

Created a new form, with some unbound text boxes in the form header,
and a couple of buttons.

cmdClose just closes the form with DoCmd.Close

When I click the other button I want to check the values of the text
boxes. They don't show up with the dropdown when I type "me." But the
controls from the detail section do show up in the dropdown list.

When I try to compile, it throws an error on "If Len(Me.txtUID & "") =
0 Then"
"Compile error: Method or data member now found"

Both the box and the button are in the header, and I have records that
show up in the detail section, which is set to show "Continuous Forms"

I've tried:
txtUID
Me.txtUID
Forms!frmcamISeriesMaint!txtUID

All with bad results. What am I doing wrong? I just want to test for
valid data in the form, and feed the values to another function that
I've already written.

Thanks so much for your time,
Chris M.
 
M

mcescher

I think you want me.txtUID.Value

James














- Show quoted text -

Nope, still throws the same error.

I'm currently trying to show records in the detail section
(Continuous) with just one set of controls at the top, am I going to
have to use a subform to do this?

Thanks for taking a look.

Chris M.
 
M

mcescher

I think you want me.txtUID.Value

James

Well, I created a new form, and it all worked fine, so I must have
botched something on that form. I'll just copy the controls over, and
it will all be fine.

Thanks James for your help,
Chris M.
 

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