A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Inventory table slow



 
 
Thread Tools Display Modes
  #1  
Old February 19th, 2007, 01:36 PM posted to microsoft.public.access.queries
swas
external usenet poster
 
Posts: 10
Default Inventory table slow

Hi,

I have an inventory table with each record having ProductID, OpenStock,
Adjustment, Reason, ClosingStock.

To find the current stock level for a product I am using a query to return
the last entry for each pruduct, called qryCurrentStock. Because this query
is info only, it is marked as snapshot.

My problem is that whenever I want to use this query for a form etc... it
renders the form query uneditable, even if I only want to edit data in an
associated table only. Inconsistent updates makes no difference. Remove
qryCurrentStock and use Dlookup solves the problem but is really really slow.

Can anyone suggest how this is best handled? I'm trying to do a physical
stocktake form. Calculations for outers etc... are so slow. I need current
outers calculated from stock, then editable to enter new value.

Any help appreciated.


swas
  #2  
Old February 23rd, 2007, 08:11 PM posted to microsoft.public.access.queries
Michel Walsh
external usenet poster
 
Posts: 2,404
Default Inventory table slow

A snapshot is generally done by making a copy the data of the whole table,
at that moment, and then, you play, as if you were the only user, with that
copy. What can be slow is to make the copy. Do you really need a snapshot?
Can you test with something else, instead, just for testing, and see if
there is room for improvement there?


Vanderghast, Access MVP

"swas" wrote in message
...
Hi,

I have an inventory table with each record having ProductID, OpenStock,
Adjustment, Reason, ClosingStock.

To find the current stock level for a product I am using a query to return
the last entry for each pruduct, called qryCurrentStock. Because this
query
is info only, it is marked as snapshot.

My problem is that whenever I want to use this query for a form etc... it
renders the form query uneditable, even if I only want to edit data in an
associated table only. Inconsistent updates makes no difference. Remove
qryCurrentStock and use Dlookup solves the problem but is really really
slow.

Can anyone suggest how this is best handled? I'm trying to do a physical
stocktake form. Calculations for outers etc... are so slow. I need current
outers calculated from stock, then editable to enter new value.

Any help appreciated.


swas



  #3  
Old February 25th, 2007, 08:28 PM posted to microsoft.public.access.queries
swas
external usenet poster
 
Posts: 10
Default Inventory table slow


Michel,

The current stock level query needed to retrieve the last entry to the
inventory table is a totals / group by query. Include this query as part of
another query for a form, and the recordset is not editable, even though I
only want the stock level as information only.

Because it is a totals query I have assumed it would make no difference it
is a snapshot. I will look at this.


Thanks

swas
"Michel Walsh" wrote:

A snapshot is generally done by making a copy the data of the whole table,
at that moment, and then, you play, as if you were the only user, with that
copy. What can be slow is to make the copy. Do you really need a snapshot?
Can you test with something else, instead, just for testing, and see if
there is room for improvement there?


Vanderghast, Access MVP

"swas" wrote in message
...
Hi,

I have an inventory table with each record having ProductID, OpenStock,
Adjustment, Reason, ClosingStock.

To find the current stock level for a product I am using a query to return
the last entry for each pruduct, called qryCurrentStock. Because this
query
is info only, it is marked as snapshot.

My problem is that whenever I want to use this query for a form etc... it
renders the form query uneditable, even if I only want to edit data in an
associated table only. Inconsistent updates makes no difference. Remove
qryCurrentStock and use Dlookup solves the problem but is really really
slow.

Can anyone suggest how this is best handled? I'm trying to do a physical
stocktake form. Calculations for outers etc... are so slow. I need current
outers calculated from stock, then editable to enter new value.

Any help appreciated.


swas




  #4  
Old February 26th, 2007, 12:02 PM posted to microsoft.public.access.queries
Michel Walsh
external usenet poster
 
Posts: 2,404
Default Inventory table slow

A query with a GROUP BY clause is not updateable, indeed.


Hoping it may help,
Vanderghast, Access MVP


"swas" wrote in message
...

Michel,

The current stock level query needed to retrieve the last entry to the
inventory table is a totals / group by query. Include this query as part
of
another query for a form, and the recordset is not editable, even though I
only want the stock level as information only.

Because it is a totals query I have assumed it would make no difference it
is a snapshot. I will look at this.


Thanks

swas
"Michel Walsh" wrote:

A snapshot is generally done by making a copy the data of the whole
table,
at that moment, and then, you play, as if you were the only user, with
that
copy. What can be slow is to make the copy. Do you really need a
snapshot?
Can you test with something else, instead, just for testing, and see if
there is room for improvement there?


Vanderghast, Access MVP

"swas" wrote in message
...
Hi,

I have an inventory table with each record having ProductID, OpenStock,
Adjustment, Reason, ClosingStock.

To find the current stock level for a product I am using a query to
return
the last entry for each pruduct, called qryCurrentStock. Because this
query
is info only, it is marked as snapshot.

My problem is that whenever I want to use this query for a form etc...
it
renders the form query uneditable, even if I only want to edit data in
an
associated table only. Inconsistent updates makes no difference. Remove
qryCurrentStock and use Dlookup solves the problem but is really really
slow.

Can anyone suggest how this is best handled? I'm trying to do a
physical
stocktake form. Calculations for outers etc... are so slow. I need
current
outers calculated from stock, then editable to enter new value.

Any help appreciated.


swas






 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:41 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.