PC Review


Reply
Thread Tools Rate Thread

Expressions on forms - limit?

 
 
JamesSF
Guest
Posts: n/a
 
      24th May 2004
is there a limit in A2k2 on number of expression text boxes allowed on a
form?

I have 10 text boxes with a simple iif statement like this:
=IIf([ysnLine1]=0,"No","Yes")
so 1 text box for each of 10 lines

the 10th one and further always says #Name i can delete the ysnLine1 box
and the ysnLine10 one shows up with data. if i copy and paste one, all
subsequent text boxes show #Name.

the record source is a table with 1 row and 14 columns. this a checklist
form that has a check box bound to the table and an unbound text box next to
it to say yes or no as a competed status.

It just will not show 10 unbound expressions at a time.

Any ideas?

Thanks
James SF


 
Reply With Quote
 
 
 
 
Marshall Barton
Guest
Posts: n/a
 
      24th May 2004
JamesSF wrote:

>is there a limit in A2k2 on number of expression text boxes allowed on a
>form?
>
>I have 10 text boxes with a simple iif statement like this:
>=IIf([ysnLine1]=0,"No","Yes")
>so 1 text box for each of 10 lines
>
>the 10th one and further always says #Name i can delete the ysnLine1 box
>and the ysnLine10 one shows up with data. if i copy and paste one, all
>subsequent text boxes show #Name.
>
>the record source is a table with 1 row and 14 columns. this a checklist
>form that has a check box bound to the table and an unbound text box next to
>it to say yes or no as a competed status.
>
>It just will not show 10 unbound expressions at a time.



Unless you have some kind of corruption in your db, that's a
new one on me.

You might want to try eliminating the expression altogether
by setting the text box's control source to just the field
in the table and setting its Format property to Yes/No.
--
Marsh
MVP [MS Access]
 
Reply With Quote
 
Reggie
Guest
Posts: n/a
 
      25th May 2004
I agree with Marshall. If you insist though does make sure the ysnLine10
and above control/fields are on your form and that the name of the control
is the same as the one you are referencing? In other words if you have:
=IIf([ysnLine11]=0,"No","Yes")
make sure you have the field/control with the name ysnLine11 on your form.

Other then that I just did a test as you described and it worked form me.
--
Reggie

www.smittysinet.com
----------
"Marshall Barton" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> JamesSF wrote:
>
> >is there a limit in A2k2 on number of expression text boxes allowed on a
> >form?
> >
> >I have 10 text boxes with a simple iif statement like this:
> >=IIf([ysnLine1]=0,"No","Yes")
> >so 1 text box for each of 10 lines
> >
> >the 10th one and further always says #Name i can delete the ysnLine1 box
> >and the ysnLine10 one shows up with data. if i copy and paste one, all
> >subsequent text boxes show #Name.
> >
> >the record source is a table with 1 row and 14 columns. this a checklist
> >form that has a check box bound to the table and an unbound text box next

to
> >it to say yes or no as a competed status.
> >
> >It just will not show 10 unbound expressions at a time.

>
>
> Unless you have some kind of corruption in your db, that's a
> new one on me.
>
> You might want to try eliminating the expression altogether
> by setting the text box's control source to just the field
> in the table and setting its Format property to Yes/No.
> --
> Marsh
> MVP [MS Access]



 
Reply With Quote
 
Tim Ferguson
Guest
Posts: n/a
 
      25th May 2004
"JamesSF" <(E-Mail Removed)> wrote in
news:(E-Mail Removed):

>
> I have 10 text boxes with a simple iif statement like this:
> =IIf([ysnLine1]=0,"No","Yes")
> so 1 text box for each of 10 lines
>
>


They are not being referenced programmatically, are they, with a line like

Dim strControlName As String(8)

strControlName = "ysnLine" & wCounter

bValue = me.Controls(strControlName).Value


because that will fail when wCounter>9

Just a thought...


Tim F



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Expressions in forms John W. Vinson Microsoft Access Forms 1 31st Aug 2009 04:38 AM
Re: Expressions in forms Bob Quintal Microsoft Access Forms 0 30th Aug 2009 11:23 PM
Expression Builder: Limit on Expressions? Robert Microsoft Access Queries 1 15th May 2009 05:14 PM
Use of Expressions That Limit Data Output In Query Results =?Utf-8?B?bWV6dWhsa2U=?= Microsoft Access 0 8th Feb 2007 12:55 AM
expressions in forms =?Utf-8?B?RXhwcmVzc2lvbnM=?= Microsoft Access 2 1st Dec 2004 02:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:54 PM.