×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Adding a new record to a table

Adding a new record to a table

Adding a new record to a table

(OP)
So I'm trying to add a new record to a table and have it appear in my query. I've added it to my table, but when I use my query the record doesn't show. I've tried to update my query, but because I'm using the *, it won't. I have no idea what to do.

RE: Adding a new record to a table

post your query and table structure

HTH << MaZeWorX >> "I have not failed I have only found ten thousand ways that don't work"

RE: Adding a new record to a table

(OP)
This is my query:
SELECT [HMBA B101, 25C].[Metal OS], [HMBA B101, 25C].*, [HMBA B102,25C].*, [HMBA B103, 25C].*, [HMBA B104, 25C].*
FROM (([HMBA B101, 25C] INNER JOIN [HMBA B102, 25C] ON [HMBA B101, 25C].[Metal OS]=[HMBA B102, 25C].[Metal OS]) INNER JOIN [HMBA B103, 25C] ON ([HMBA B101, 25C].[Metal OS]=[HMBA B103, 25C].[Metal OS]) AND
([HMBA B102, 25C].[Metal OS]=[HMBA B103, 25C].[Metal OS])) INNER JOIN [HMBA B104, 25C] ON ([HMBA B102, 25C].[Metal OS]=[HMBA B104,
25C].[Metal OS]) AND ([HMBA B103, 25C].[Metal OS]=[HMBA B104, 25C].[Metal OS]) AND ([HMBA B101, 25C].[Metal OS]=[HMBA B104, 25C].[Metal OS])
WHERE ((([HMBA B101, 25C].[Metal OS])=[Specify Metal(OS)]));

I made my tables in excel and I'm not sure how to post them, but its a 59x9 table, with text or numbers as fields.

RE: Adding a new record to a table

I had to ask :)

because of the joins and a where clause does your data match this criteria? I suspect not which is why it isnt displayed. Possibly someone else may want to wade in on this one :).  

HTH << MaZeWorX >> "I have not failed I have only found ten thousand ways that don't work"

RE: Adding a new record to a table

Is [Metal OS] the primary key in each table?  The type of joins you are using require records in each of the tables.  

Duane
Hook'D on Access
MS Access MVP

RE: Adding a new record to a table

(OP)
Yes [Metal OS] is my primary key.

So are you saying that if I want to add a new metal, I need to add one to every table in the query, even if there isn't data for that metal?  Or are you saying that because I don't have every column filled access won't except it as a new "record"?

What criteria is my data suppose to match? I've made all my columns the same type of "fields," and I clicked the "data validation" button.  

RE: Adding a new record to a table

perhaps your join should be left joins

RE: Adding a new record to a table

(OP)
I got it to work :D Thanks for all the help!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close