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

Report question - SOLVED

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


Joined: 03 Jan 2008
Posts: 7

PostPosted: Thu Jan 03, 2008 6:20 pm    Post subject: Report question - SOLVED Reply with quote

I've downloaded and installed the report extension, and by and large it works like I expect, but I have one nagging problem. In Access, it is possible to create a field like this:

=([City] & ", " & [State] & " " & [Zip Code])

That allows for nice formatting and combination of table fields. Is this possible in the Sun Report tool? If so, where do I go for some examples/or syntax information/directions?

Thanks in advnace,
Paul


Last edited by modelaford on Mon Jan 07, 2008 7:13 am; edited 1 time in total
Back to top
View user's profile Send private message
Sliderule
Super User
Super User


Joined: 29 May 2004
Posts: 2477
Location: 3rd Rock From The Sun

PostPosted: Sat Jan 05, 2008 8:23 pm    Post subject: Reply with quote

Paul:

You have asked about using the Base extension Sun Report Builder . . . and . . . the ability to 'create a field'.

There are a few ways to do this . . . including:
  1. Use a Query to create the field you desired
  2. Create a View that includes the field as you desire
  3. Use the Report Function to create the computed field

I will show you an example of the third choice. Please note . . . the web site below:
Now, in your example . . . from the Navigator ( press F5 or from the Menu: View -> Report Navigator ) I created from my database ( names slightly different than your example ) two functions ( note: no equal sign in the equation ) . . .
  • [FIRST_NAME] & " " & [LAST_NAME]
  • [CITY] & ", " & [ST] & " " & [ZIP]

These 'computed fields' were defined in the report as BOTH Formula and Initial value shown below:



I hope this helps, please be sure to let me / us know.

Sliderule

Thanks to add [Solved] in your first post title (edit button) if your issue has been fixed / resolved.
Back to top
View user's profile Send private message
modelaford
General User
General User


Joined: 03 Jan 2008
Posts: 7

PostPosted: Mon Jan 07, 2008 5:57 am    Post subject: Reply with quote

Perfect - thanks... that is exactly what I was looking for. This is great stuff!!!!
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