473,395 Members | 1,497 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,395 software developers and data experts.

Access 2000 lookups

Wondering is this is possible - I have 2 tables. One is categories,
and has catid, catname, hashighercat, and ...I can't think of the 4th
one, but it isn't needed anyway.

There are 40 categories, and about 1400 subcats. the categories are
numbered 1-40, and the rest have their numbers - all of these are in
the same field - catid. You can tell the categories from the
subcategories by the field hashighercat - the 40 categories are null
here, and the subcategories have the categoryid that they belong to.

the product table contains fields for category, catid, subcategory,
and subcatid.

currently, I have a list value lookup for the category field, so the
values can be filled in by typing 1 or 2 or 3 letters. This isn't
connected to the category table.

What I need is - when I type in the category, the catid number should
automatically fill in into the next field (catid). then in the next
field (subcategory) there would now be a dropdown box with the
subcategories for that category only.

Then, when I pick one of the subcats, it's subcatID number would
automatically fill in the last field (subcatid).

Is this possible? By queries? Or by VBA? or how?

Thanks
Jul 23 '08 #1
3 1390
I'm confused. Are you? You say you have 2 tables then apparently refer to a
table of categories, a table of sub categories and a table of products.

I am guessing that you have something like

Product Sub category Category
Edam Cheese Dairy Products Food
5 mm Drill Drill bits Tools

You want a form that you select Tools. Then you get a dropdown to select
Hammers, Drill Bits Saws etc
Then having selected Drill bits you want a second dropdown showing 1mm
Drill, 2mm Drill, 5mm Masonry drill etc.

If so it is nearly all queries and a bit of code.

Please clarify your requirements and I'm sure you will get some help

Phil
<ji*******@gmail.comwrote in message
news:a5**********************************@k30g2000 hse.googlegroups.com...
Wondering is this is possible - I have 2 tables. One is categories,
and has catid, catname, hashighercat, and ...I can't think of the 4th
one, but it isn't needed anyway.

There are 40 categories, and about 1400 subcats. the categories are
numbered 1-40, and the rest have their numbers - all of these are in
the same field - catid. You can tell the categories from the
subcategories by the field hashighercat - the 40 categories are null
here, and the subcategories have the categoryid that they belong to.

the product table contains fields for category, catid, subcategory,
and subcatid.

currently, I have a list value lookup for the category field, so the
values can be filled in by typing 1 or 2 or 3 letters. This isn't
connected to the category table.

What I need is - when I type in the category, the catid number should
automatically fill in into the next field (catid). then in the next
field (subcategory) there would now be a dropdown box with the
subcategories for that category only.

Then, when I pick one of the subcats, it's subcatID number would
automatically fill in the last field (subcatid).

Is this possible? By queries? Or by VBA? or how?

Thanks

Jul 23 '08 #2
Yes I am confused too!

In the products table, there are these fields
Category Catid Subcat Subcatid
Food 2 Meat 322
Drink 3 Soda 114
In the category table, we have

CatID CatName HigherCat HasSubCat

2 Food 0 Yes
3 Drink 0 Yes
114 Soda 1 [null]
118 Meat 2 [null]
322 Veggies 2 [null]
344 Beer 1 [null]

In the product table, I want to type "food" into [category], and have
"3" fill into [catid] automatically. Then [subcat] will have a dropbox
showing "meat" and "veggies". I choose one of them, say "veggies", and
"322" will fill into [subcatid] automatically.

I hope that makes better sense!

===========================================

On Jul 23, 5:59*pm, "Phil Stanton" <p...@myfamilyname.co.ukwrote:
I'm confused. Are you? You say you have 2 tables then apparently refer toa
table of categories, a table of sub categories and a table of products.

I am guessing that you have something like

Product * * * * * * * *Sub category * * * * * *Category
Edam Cheese * * * *Dairy Products * * * *Food
5 mm Drill * * * * * *Drill bits * * * * * * * * * *Tools

You want a form that you select Tools. Then you get a dropdown to select
Hammers, Drill Bits Saws etc
Then having selected Drill bits you want a second dropdown showing 1mm
Drill, 2mm Drill, 5mm Masonry drill etc.

If so it is nearly all queries and a bit of code.

Please clarify your requirements and I'm sure you will get some help

Phil

<jillin...@gmail.comwrote in message

news:a5**********************************@k30g2000 hse.googlegroups.com...
Wondering is this is possible - I have 2 tables. One is categories,
and has catid, catname, hashighercat, and ...I can't think of the 4th
one, but it isn't needed anyway.
There are 40 categories, and about 1400 subcats. the categories are
numbered 1-40, and the rest have their numbers - all of these are in
the same field - catid. You can tell the categories from the
subcategories by the field hashighercat - the 40 categories are null
here, and the subcategories have the categoryid that they belong to.
the product table contains fields for category, catid, subcategory,
and subcatid.
currently, I have a list value lookup for the category field, so the
values can be filled in by typing 1 or 2 or 3 letters. This isn't
connected to the category table.
What I need is - when I type in the category, the catid number should
automatically fill in into the next field (catid). then in the next
field (subcategory) there would now be a dropdown box with the
subcategories for that category only.
Then, when I pick one of the subcats, it's subcatID number would
automatically fill in the last field (subcatid).
Is this possible? By queries? Or by VBA? or how?
Thanks- Hide quoted text -

- Show quoted text -
Jul 24 '08 #3
That's wrong - should be

Category Catid Subcat Subcatid
Food 2 Meat 322
Drink 3 Soda 114
In the category table, we have
CatID CatName HigherCat HasSubCat
2 Food 0 Yes
3 Drink 0 Yes
114 Soda 3 [null]
118 Meat 2 [null]
322 Veggies 2 [null]
344 Beer 3 [null]

Jul 24 '08 #4

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

Similar topics

3
by: cooldv | last post by:
i am running a website on Windows 2000 server with ASP 3 webpages and Access 2000 database. (with a hosting company) traffic is slow at this time but expect to grow. lately i have been reading...
12
by: Puvendran | last post by:
Hi, We have encountered deadlock on a table which is used to generate sequential numbers for different categories eg typical entries Category Value TRADE_NO ...
2
by: Fred | last post by:
Hi. How do I import while mapping an excel table to an access table please??? I've searched around and all I can find is a software product or code that does the same thing as the access...
6
by: Innuendo | last post by:
Hello, I'm not a specialist with Access - so I hope that you can give me some input. I've to import xml data (about 15 different data fields) into an access-database each night. As scripting...
3
by: Decreenisi | last post by:
Hi, I have to convert an existing spreadsheet for rejects into an access database. My problem is I use a load of lookup tabels in excel. How do I approch this in access. Also, just a general...
14
by: Kevin G. Anderson | last post by:
What: CAUG Meeting - QuickBooks IIF Files; Total Access Analyzer; CAUG Social When: Thursday, May 25, 2006, 6PM Who: Chris Monaghan and Kevin Anderson Where: The Information Management Group...
9
by: Michael M. | last post by:
Hi all, I would like to know how to access the NT/2000/XP/2003 Name cache; what I mean by this is: Open a Command Prompt and.., C:\> C:\>IPCONFIG /DISPLAYDNS
2
by: sparks | last post by:
First question is there a way to tell who is logged into a database on a server? I did some checking and found several things at MS support for access 2007, log in run some code and get a list....
9
by: O | last post by:
I need to do some lookups and updates on some legacy Access 2.0 files (they've from another vendor and I'm not in a position to update them). I was successful using VB6, but I've moved on to VS...
4
by: netnewbie78 | last post by:
Hello All, I don't have a problem (but maybe I will after I explain). I have a question with regards to something I saw in Access 2007. But first, a little backstory: I'm writing a very small...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
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
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...

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.