NotAnExpert
Registered User.
- Local time
- Today, 22:52
- Joined
- Feb 3, 2017
- Messages
- 46
Good afternoon, many thanks for taking the time to read my post.
I'm sorry if this seems like an obvious thing to know, but because I don't quite know how to ask the question it makes things more difficult.
I have a database, which I have attached Access to via ODBC, the tables are linked, not imported but the source of the data is huge and accessed very regularly by several members of our team which has an impact on how quickly the results are shown in this Access database.
In the source data there are several fields which I will be searching from but to get the ball rolling I will give you an idea.
Table: SalesOrders
Fields: JobRef (Primary Key), CustomerName, CustomerPO,
Table: SalesOrderItems
Fields: ItemID (Primary Key), JobRef (Linked to SalesOrders: JobRef), Description, Price, Quantity
In the Access database I have the following:
Form: 'frmMainForm',
Textbox: 'txtJobRef'
'txtJobRef': AfterUpdate Event, requery subform
SubForm: 'sfrmResults' based on query 'qryResults'
'qryResults' gets information from ODBC Source 'SalesOrderItems'
I have noticed a couple of things on my learning path but I am hitting a couple of stumbling blocks.
The query is slow. It works fine, but it is slow.
I have been told that perhaps something else might be faster, I know a vlookup type function works ok but this means I can only get one set of information at a time, but I want to be able to display multiple items in my subform where the JobRef matches what is typed into 'txtJobRef' on my main form.
Is there a faster way of doing this which doesn't impact the source database when being queried by an outsider program like Access?
Any examples would be fantastic...
I'm sorry if this seems like an obvious thing to know, but because I don't quite know how to ask the question it makes things more difficult.
I have a database, which I have attached Access to via ODBC, the tables are linked, not imported but the source of the data is huge and accessed very regularly by several members of our team which has an impact on how quickly the results are shown in this Access database.
In the source data there are several fields which I will be searching from but to get the ball rolling I will give you an idea.
Table: SalesOrders
Fields: JobRef (Primary Key), CustomerName, CustomerPO,
Table: SalesOrderItems
Fields: ItemID (Primary Key), JobRef (Linked to SalesOrders: JobRef), Description, Price, Quantity
In the Access database I have the following:
Form: 'frmMainForm',
Textbox: 'txtJobRef'
'txtJobRef': AfterUpdate Event, requery subform
SubForm: 'sfrmResults' based on query 'qryResults'
'qryResults' gets information from ODBC Source 'SalesOrderItems'
I have noticed a couple of things on my learning path but I am hitting a couple of stumbling blocks.
The query is slow. It works fine, but it is slow.
I have been told that perhaps something else might be faster, I know a vlookup type function works ok but this means I can only get one set of information at a time, but I want to be able to display multiple items in my subform where the JobRef matches what is typed into 'txtJobRef' on my main form.
Is there a faster way of doing this which doesn't impact the source database when being queried by an outsider program like Access?
Any examples would be fantastic...