473,412 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Asterisk appearing in table box when doing query

I have a database that keeps track of art illustrations. I have relationships created between tables. One table that appears in my relationship is the Artist table and here is how it appears on the relationship screen

Artist
ID (primary key)
ArtistFirstName
ArtistLastName

However, when I go to do a query using the Query Design function and place that table it appears this way

Artist
*
ID (primary key)
ArtistFirstName
ArtistLastName

I don't know what makes the asterisk appear on the Query Design screen. When I try to run the query, I get a message saying...

"The SELECT statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect."

I don't know if the asterisk is what is causing this message. The other two tables are OriginalArtist

OriginalArtist
*
ArtistID (Foreign Key)
ImageID (Foreign Key)
ID (Primary Key)

And

Images
*
Reg Number (Primary Key)
...
Nov 8 '10 #1
3 12434
jimatqsi
1,271 Expert 1GB
The * simply is an indicator meaning "all the columns belonging to this table." You could drag the star down to the grid and it would add all the table's columns to that query.

You can get the sql code for the query by right-clicking on the top of the query and choosing "SQL view". Copy and paste that code here and someone can help you solve the problem.

Or, to do it yourself, try eliminating one column at a time from the query until the error goes away. Then go back to original query and take a closer look at the column making the problem.

Jim
Nov 8 '10 #2
mshmyob
904 Expert 512MB
Could it be because "Number" is a reserved word. I would have assumed Access would have wrapped her PK in square brackets using the query design but you never know.

Post your actual SQL query that the query designer made and maybe we can spot it there.

cheers,
Nov 9 '10 #3
mshmyob
904 Expert 512MB
As an after thought. Is that table actually called "Images" or "Image".

If it is actually called "Image" that is an Access database engine reserved word.

cheers,
Nov 9 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Josh | last post by:
I have two tables with the same structure and need to compare the similar rows where they exist. That's the easy part. However, I can't figure out a way to do a calculation when a specific row only...
8
by: Sean Shanny | last post by:
To all, The facts: PostgreSQL 7.4.0 running on BSD 5.1 on Dell 2650 with 4GB RAM, 5 SCSI drives in hardware RAID 0 configuration. Database size with indexes is currently 122GB. Schema for...
1
by: Michael | last post by:
I have a query that uses two joined tables. The query contains data. I would like to pull in a data drom another table but when I add that table to the query design and make the join,the existing...
3
by: GL | last post by:
Hi, Is there a way to add a field to an existing table using a query of some sort (without needing to manually add a field to the table). I know how to do it with a make table query, but I have...
3
by: jpatterson | last post by:
Hi, I need to be pointed in the right direction. I'm looking for a way to dynamically change a table in a query. I have a table called students and each fiscal year the student table will get...
2
by: jmarr02s | last post by:
I don't know what I am doing wrong I get duplicate records when I query Here is my SQL query code: SELECT Utilization_T.Facid, Utilization_T.Year, Utilization_T.Beds, Utilization_T.LicBeds,...
3
LMHelper
by: LMHelper | last post by:
How do I create a table from a query that will UPDATE each time I update the original table? I created a table from a query and it stayed the same for the past couple of months and did not...
6
by: dgleeson3 | last post by:
Hello All I have VB code (.Net 2005) reading from an SQL server 2005 database. Im getting InvalidCastException when doing reader.GetInt32(0) Im simply reading an int from a simple database. It...
1
by: dstorms | last post by:
Hi folks, I am trying to set up my database to create a new record in one table when a new record is created in another. Since it is a one-to-one realtionship it certainly would be easier to put...
2
by: roopakv | last post by:
I have a table CREP and a query . Basically i want to update the data on the table CREP based on the data in the query . Both the table and the query have a common column, that is date. Crep has...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.