Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Button in form header

0 views
Skip to first unread message

mcescher

unread,
Nov 14, 2007, 5:46:00 PM11/14/07
to
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.

JamesDeckert

unread,
Nov 14, 2007, 7:12:01 PM11/14/07
to
I think you want me.txtUID.Value

James

mcescher

unread,
Nov 15, 2007, 11:00:41 AM11/15/07
to
On Nov 14, 6:12 pm, JamesDeckert
> > Chris M.- Hide quoted text -
>
> - 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.

mcescher

unread,
Nov 15, 2007, 12:15:58 PM11/15/07
to
On Nov 14, 6:12 pm, JamesDeckert
<JamesDeck...@discussions.microsoft.com> wrote:
> 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.

0 new messages