By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,479 Members | 1,607 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,479 IT Pros & Developers. It's quick & easy.

automatically retrieve value from a range table

P: n/a
Hello,

I created following tables:[tblSizes] & [tblItems]

[tblSizes]
SizeID (number)--KeyField
WeightFm (number)
WeightTo (number)

Sample data =
Record1: 1.00 (=SizeID) 1.00( = WeightFm) 1.49( = WeightTo)
Record2: 1.50 (=SizeID) 1.50( = WeightFm) 1.99( = WeightTo)
Record3: 2.00 (=SizeID) 2.00( = WeightFm) 2.99( = WeightTo)

[tblItems]
ItemID (number)--KeyField
....
ItemWeight (number)
SizeID
....

Now, everytime I add a new record in tblItems, I will enter the ItemWeight.
The SizeID, however should automatically be retrieved (according to the
ItemWeight) from the table tblSizes.
e.g. ItemWeight = 1.39 ---> SizeID = 1.00
e.g. ItemWeight = 2.19 ---> SizeID = 2.00

How do I accomplish this?

Thanks for any help!

--
Reginald Bal
Feb 21 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
See Tom Ellison's article:
Lookup in a range of values in a query
at:
http://allenbrowne.com/ser-58.html
for a discusssion of how to go about this.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Reginald Bal" <rb**@rebit.be> wrote in message
news:iY**********************@phobos.telenet-ops.be...
Hello,

I created following tables:[tblSizes] & [tblItems]

[tblSizes]
SizeID (number)--KeyField
WeightFm (number)
WeightTo (number)

Sample data =
Record1: 1.00 (=SizeID) 1.00( = WeightFm) 1.49( = WeightTo)
Record2: 1.50 (=SizeID) 1.50( = WeightFm) 1.99( = WeightTo)
Record3: 2.00 (=SizeID) 2.00( = WeightFm) 2.99( = WeightTo)

[tblItems]
ItemID (number)--KeyField
...
ItemWeight (number)
SizeID
...

Now, everytime I add a new record in tblItems, I will enter the
ItemWeight.
The SizeID, however should automatically be retrieved (according to the
ItemWeight) from the table tblSizes.
e.g. ItemWeight = 1.39 ---> SizeID = 1.00
e.g. ItemWeight = 2.19 ---> SizeID = 2.00

How do I accomplish this?

Thanks for any help!

--
Reginald Bal

Feb 21 '06 #2

P: n/a
Tx Allen this article helped me to solve my problem.

"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:43***********************@per-qv1-newsreader-01.iinet.net.au...
See Tom Ellison's article:
Lookup in a range of values in a query
at:
http://allenbrowne.com/ser-58.html
for a discusssion of how to go about this.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Reginald Bal" <rb**@rebit.be> wrote in message
news:iY**********************@phobos.telenet-ops.be...
Hello,

I created following tables:[tblSizes] & [tblItems]

[tblSizes]
SizeID (number)--KeyField
WeightFm (number)
WeightTo (number)

Sample data =
Record1: 1.00 (=SizeID) 1.00( = WeightFm) 1.49( = WeightTo)
Record2: 1.50 (=SizeID) 1.50( = WeightFm) 1.99( = WeightTo)
Record3: 2.00 (=SizeID) 2.00( = WeightFm) 2.99( = WeightTo)

[tblItems]
ItemID (number)--KeyField
...
ItemWeight (number)
SizeID
...

Now, everytime I add a new record in tblItems, I will enter the
ItemWeight.
The SizeID, however should automatically be retrieved (according to the
ItemWeight) from the table tblSizes.
e.g. ItemWeight = 1.39 ---> SizeID = 1.00
e.g. ItemWeight = 2.19 ---> SizeID = 2.00

How do I accomplish this?

Thanks for any help!

--
Reginald Bal


Feb 24 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.