473,799 Members | 3,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

cross reference query

Hi guys,
I have built a cross reference query (columns is year).
I would like to change the caption and adjust others things.
The best way would be to wrap the query in a form, but soon
2007 will begin And I will have to maintain the form.
I worry mostly about the caption of the cross query.
How can I change the caption of a cross query without use a form.

Thank you all

Maffonso

Jul 14 '06 #1
3 5685
Hi Maffonso,

To edit the query field caption (I hope that is what you are asking
about) is type something like this for each field that you wnat a custom
caption for - in the "Field" box in query design - say your table has
fields named fld1, fld2, fld3

in the query design you do this to change the caption for each field

customCaption1: fld1 customCaption2: fld2 ustomeCaption3: fld3

you are modifying the text in the field box by adding your customCaption
followed by a semicolon : followed by the field name.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Jul 14 '06 #2
Hi Rich,
I mean caption that caption in the blue bar at the top of the window.
By default the caption in the blue bar is the name of the
query. For example: qryMyQuery:cros s reference.
My probem is that if I use a form, each new year I will have to
create a new column. For example: when 2007 comes I will
have to create a 2007 column.

Thank you
Maffonso

Jul 18 '06 #3
>>
I will have to
create a new column. For example: when 2007 comes I will
have to create a 2007 column.
<<

The statement above suggests incorrect usage of an RDBMS - relational
database system. Even though Access is not as sophisticated as Sql
Server - it is still a relational database system, and Jet Sql operates
under the same rules as Transaction Sql (sql server Tsql). That means
that adding a new column to a query that is already in production would
be introducting redundancy into your system. That means that you are
denormalizing your database - which means that you will have the
problems that you are posting about in the first place.

The solution to your original post then, is to use a form because in a
form you can manipulate the caption in a form. But a problem that I see
from this newsgroup is that a lot of people who use Access but are not
looking to become professional programmers are lulled into thinking that
Access can do anything. And this crowd is not aware of the concept of
database normalization - which means no redundant columns - a confusing
and complex topic - which requires programming.

Well, for a desktop database system, Access is a very powerful system
and can do a lot of things that most desktop applications cannot do.
The caveat is that you have to write programming code (VBA) to make
Access do these things. So instead of adding a new column to your query
keep the query you have and programmaticall y pull the data that you need
by using parameters. If you need to pull data for 2006 for now, you
pass in a parameter for the year 2006. Then when you need to get data
for 2007, you can use the same parameter to retrieve data for 2007.

If you are not familiar with using parameters in queries
programatically , you can ask about it in this newsgroup.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Jul 19 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2161
by: Klint Gore | last post by:
I've hit a situation where I'm getting an unexpected set of results from a cross join that I've narrowed down to a table alias. If I do (a has 4 rows, b has 1 row) select a.field1, b.* from a as maintable cross join b I get 16 rows returned. Is this expected behaviour or should an error
4
5586
by: David Peach | last post by:
Hello, hope somebody here can help me... I have a query that lists defects recorded in a user defined date range. That query is then used as the source for a Cross Tab query that cross-tabs count of defect type by calendar month. Defect types are stored in one table, defect transactions in another along with date etc. When I cross-tab the results, defect types that have no defects recorded against them appear as a blank (null) value. That...
0
1414
by: jgabbai | last post by:
Hi, I am looking to pick up the relationship between items in a cross-reference table. For example, searching for c OR f (bracketed below to highlight them), I want to list the other right hand side keys that are linked by the left hand side key. So in the below case, "a" is linked 3 times due to (c), b is linked twice due to (c), d is linked twice due to (c) and (c OR f) and finally e, linked once due to (c). 1 | a
1
2768
by: Rob Woodworth | last post by:
Hi, I'm having serious problems getting my report to work. I need to generate a timesheet report which will contain info for one employee between certain dates (one week's worth of dates). I have a table containing records for each job done, the records contain date, employee name, job done (a code representing the type of job), cost code (another code), regular hours, and overtime hours. The tricky part is that more than one job can...
1
3464
by: Gabriella | last post by:
Hi, I am having lots of cross-resolution (and also cross-browser) problems. I would like to know what is the most recommended solution for this type of issue: * Should I use different CSS for different resolutions? I don't like this solution because than I will have to maintain 2 large CSS files. * Should I just query the resolution each time there's a problematic div, and than add the relevant div accordingly? E.g.: if (screen.width ==...
10
6237
by: aaronrm | last post by:
I have a real simple cross-tab query that I am trying to sum on as the action but I am getting the "data type mismatch criteria expression" error. About three queries up the food chain from this cross-tab query I am using a simple query with no grouping where I am filtering some data out in the criteria line. I have been out of access for a couple years but I remember in the past I had a solution for this but I can't remember. Any help...
5
2637
by: Cyrax1033 | last post by:
I have yet a new issue that is the only factor stopping me from adding on the last feature to the database; all help is very much appreciated! In my database is are two tables: one for inserting contact information and employee status, and the other documenting work history. I created a query that contains only the most recent data entered and from that query I created a cross-tab query that reads the data in the query and returns the list...
1
1612
misscrf
by: misscrf | last post by:
I have a table that acts as a cross reference to related records. No we can't get different data, no we have no control over what we have, we just need to be able to manage what we have been given. lol Anyway, what I have created so far is working well. I have a subform on a tab of a main customer entry form. It says "related customers". My issue is this: When you go to one record, you may see 4 customer records relating to it. If...
4
1747
by: nospam | last post by:
I have a table that acts as a cross reference to related records. No we can't get different data, no we have no control over what we have, we just need to be able to manage what we have been given. lol Anyway, what I have created so far is working well. I have a subform on a tab of a main customer entry form. It says "related customers". My issue is this: When you go to one record, you may see 4 customer records relating to it. ...
0
10485
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10252
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10231
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10027
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7565
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.