Same Name, Different Use

  • Thread starter Seahawk via AccessMonster.com
  • Start date
S

Seahawk via AccessMonster.com

Hello to everyone! New to the community, but from everything I have read in
here you guys are amazing.
Self taught Access user here so please bear with me if I get confused myself.

I have a db that has all our parts listed in a table 'Parts'. The parts are
listed as: (Name of Part) (Machine Used On)\same field, probably my first
mistake. So lets say: Screw Plastic Frame. Screw being Name of Part and
Plastic Frame being Machine Used On.

My question is: Is it possible to create a query that will only pull up the
name of the parts that are used on a specific machine as they are listed? Or
do I have to seperate these two?
 
R

ra.john

No you cant with the data stored in that format, you would need to
split the two fields-
Part and Machine.
 
S

Seahawk via AccessMonster.com

Thank you for the response. I kinda figured that, but thought I would check
first.
 
J

John Vinson

Hello to everyone! New to the community, but from everything I have read in
here you guys are amazing.
Self taught Access user here so please bear with me if I get confused myself.

I have a db that has all our parts listed in a table 'Parts'. The parts are
listed as: (Name of Part) (Machine Used On)\same field, probably my first
mistake. So lets say: Screw Plastic Frame. Screw being Name of Part and
Plastic Frame being Machine Used On.

My question is: Is it possible to create a query that will only pull up the
name of the parts that are used on a specific machine as they are listed? Or
do I have to seperate these two?

Well... sort of. You can use a query criterion of

LIKE "*Plastic Frame"

to find all records for which "Plastic Frame" is the final string of
the composite field. If you have machine used on values of "Plastic
Frame" and "Deluxe Plastic Frame" you'll see them mixed.

You do indeed need two fields; it's a basic principle that fields
should be "atomic", having only one piece of information.

John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top