nickbarnes
New member
- Local time
- Today, 12:42
- Joined
- Aug 23, 2011
- Messages
- 9
Hi guys, Im pretty new to Access and am learning as I go! I've got all my tables, queries and forms set up but Im really struggling to get a working search function which suits my needs. I've searched for weeks and tried so many examples but nothing does what I'm looking for so I think it's time I came and asked the experts!
I have two main tables, "Exchanges" and "PCPs". The "ExchangesView" form shows the data from the "Exchanges" table one record at a time. Also on this form is a subform which shows the related data for each Exchange from the "PCPs" table.
I'd like a single text box in which the user can search by any of the following values and press enter or click a search button to find the records:
FIELD NAME / FROM TABLE / DATA TYPE
1141 / Exchanges / Text
ExchangeName / Exchanges / Text
Phase / Exchanges / Text
Region / Exchanges / Text
BuildDate / Exchanges / Date
PurchaseOrder / Exchanges / Text
Requisition / Exchanges / Text
Estimate / Exchanges / Text
And if possible:
DSLAM / PCPs / Text
OrderRef / PCPs / Text
GatewayRef / PCPs / Text
Entering any one of these field in the search box will then change all of the other fields on the "ExchangesView" form so that the relevant data can be viewed and edited. I'd really like to include the fields from the PCPs table (highlighted in blue) but I have no idea if it is even possible to search for data in the subform and then bring up the relevant data from the Exchanges table (the main form). I really dont want to use any combo boxes or any list type affair as there will eventually be too many records to make this feasible.
Im really sorry if this makes no sense, Im really struggling to put my needs into words! I hope someone can help, I'd be so very grateful!! Please remember, like I said above, Im really new to Access so please be gentle!
Thanks all you Access Masters out there!![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
PS... I forgot to mention that Im using Access 2010 and this is a web database which will be uploaded to SharePoint 2010. Thanks guys and girls!
I have two main tables, "Exchanges" and "PCPs". The "ExchangesView" form shows the data from the "Exchanges" table one record at a time. Also on this form is a subform which shows the related data for each Exchange from the "PCPs" table.
I'd like a single text box in which the user can search by any of the following values and press enter or click a search button to find the records:
FIELD NAME / FROM TABLE / DATA TYPE
1141 / Exchanges / Text
ExchangeName / Exchanges / Text
Phase / Exchanges / Text
Region / Exchanges / Text
BuildDate / Exchanges / Date
PurchaseOrder / Exchanges / Text
Requisition / Exchanges / Text
Estimate / Exchanges / Text
And if possible:
DSLAM / PCPs / Text
OrderRef / PCPs / Text
GatewayRef / PCPs / Text
Entering any one of these field in the search box will then change all of the other fields on the "ExchangesView" form so that the relevant data can be viewed and edited. I'd really like to include the fields from the PCPs table (highlighted in blue) but I have no idea if it is even possible to search for data in the subform and then bring up the relevant data from the Exchanges table (the main form). I really dont want to use any combo boxes or any list type affair as there will eventually be too many records to make this feasible.
Im really sorry if this makes no sense, Im really struggling to put my needs into words! I hope someone can help, I'd be so very grateful!! Please remember, like I said above, Im really new to Access so please be gentle!
Thanks all you Access Masters out there!
PS... I forgot to mention that Im using Access 2010 and this is a web database which will be uploaded to SharePoint 2010. Thanks guys and girls!
Last edited: