OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Nulls and conditional text

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base
View previous topic :: View next topic  
Author Message
jamesmacklin
Newbie
Newbie


Joined: 15 Nov 2004
Posts: 2

PostPosted: Mon Nov 15, 2004 8:51 am    Post subject: Nulls and conditional text Reply with quote

Hello All,

I am trying to create a label template which gets data from a Microsoft Access table. I need to use a considerable amount of logic to produce the appropriate text on the label. I am having difficulty using the Conditional Text feature when evaluating if a database field is Null (or 0 string length). It seems very simple (<field> != "" then X else Y). Unfortunately, I only get a true (1) value whether the field is populated or not. Is this an Access problem dealing with Nulls and can I get around this? Is there other logic that I could use to evaluate if a field is populated?

Any help would be very appreciated.

James
Back to top
View user's profile Send private message
JohnV
Administrator
Administrator


Joined: 07 Mar 2003
Posts: 9183
Location: Lexinton, Kentucky, USA

PostPosted: Mon Nov 15, 2004 7:08 pm    Post subject: Reply with quote

You will get this result if you are actually using the “<” & “>” to surround your field name. Try FIELDNAME != “”.

If that's not the problem then in a new doc try using your logic on fields from OO's built int Bibliography (a dBase file). If that works then I'd think the problem has to do with how Access handles empty fields. You might try FIELDNAME NEQ NULL or “NULL”. That's a SWAG but may work. (BTW, I don't have a problem with this using the Bibliography using actual text for your X & Y.)

I don't use Access so I can't help from practical experience but I suspect plenty of others can.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group