Hi, I am trying to design an inventory for a shop that sell shoes. Everything works fine I only have one question, if somebody can help.
I need to have a single form to display the quantity avalabile of a certain line of product, taken from a query. I created the continous form, the filter and everything is fine. Each record though, has to show all the size of a certain product. I used the dlookupfunction that has 2 variables (line and size) to show these records, and works fine. Problem is there are a lots of records so, unless I keep clicking more and more anywhere on the form they don't show.
So my question is
Is there another way I can show the stock in each size, quicker than the lookup, or is there a way I can make datas to show up quicker?
Thanks
Ester GrandeOP
@Reply 3 years ago
Kevin Yip
@Reply 3 years ago
You may consider using a crosstab query to show the info, and not having to use DLookup() at all. Dlookup() is to be used sparingly, as are all the D... functions, because they perform aggregate operations that could be time-consuming.
Richard should have videos on crosstab queries. They basically work like this:
If your table looks like:
ProductID Size Units
P1000 Small 123
P1000 Medium 234
P1000 Large 234
P1000 XLarge 123
P2000 Small 100
P2000 Medium 200
P2000 Large 200
P2000 XLarge 100
A crosstab query made from this table would look like:
ProductID Small Medium Large XLarge
P1000 123 234 234 123
P2000 100 200 200 100
Ester GrandeOP
@Reply 3 years ago
Thanks I ll check that
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Access Inventory Courses.