473,500 Members | 1,822 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Find Correct Record with multiple key

34 New Member
I have a problem as follows:I have a form, with fields to edit. The data is keyed on a 'text identifier', which is entered and then used. I then determine if there are multiple occurrences of the that key (it's annoying, but possible).The single occurrence of the 'text identifier' is no problem - at the moment. If there are multiple occurrences, I use a combo to select which date the user wants. I then try and select the correct record using 'text identifier' + Date.

This is where I am having trouble. I have tried 'filtering' and 'find record', but get various issues with null data being returned.

I'm sure there must be a simple efficient way of achieving this.

Many thanks in advance.
Dec 30 '08 #1
7 1788
nico5038
3,080 Recognized Expert Specialist
I would change the textfield into a combobox and use cascading combo's (Check: http://bytes.com/topic/access/insigh...mbo-list-boxes)
You could check after the first field has been selected or there's no data for the second combo and proceed directly.

Nic;o)
Dec 30 '08 #2
redman08
34 New Member
Thanks for that. The reason why I used a textbox and not a combo for the first key was that there will be thousands of records to choose from initially.

But, if that's the only/best way, then I'll have ago.

Thanks again.
Dec 30 '08 #3
nico5038
3,080 Recognized Expert Specialist
The advantage of the combo box is the "auto append" feature. When typing a code Access will append the first matching number. Just give it a try :-)

Nic;o)
Dec 30 '08 #4
redman08
34 New Member
Have tried your approach, and linking the combos is fine (this wasn't a problem anyway). Once I select the date (on the second combo), I still get 'null' data coming through, as it doesn't appear to be able to fix onto a record with the 'identifier' plus 'date' put together as a search key. Again I've tried (in 'date_combo' afterupdate) to use filter, or similar.
Jan 5 '09 #5
nico5038
3,080 Recognized Expert Specialist
How does your filter gets constructed ?
Be sure that the date needs to be embedded in #'s and strings (when your code is a text field) in single quotes.

Nic;o)
Jan 5 '09 #6
redman08
34 New Member
Thanks Nic.

Problem solved.

I'd assumed that the date returned in the combo didn't need to have "#" surrounding it - but it did!

Many thanks again.
Jan 6 '09 #7
nico5038
3,080 Recognized Expert Specialist
No thanks needed, glad I could help and success with your application !

Nic;o)
Jan 6 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

9
3184
by: Gleep | last post by:
sorry i didn't explain it correctly before my table is like this example fields: ID name username outcome date1 date2 date3 (etc..) - date15 price1 price2 price3 (etc..) I know that...
3
2927
by: Professor Frink | last post by:
First off, I apologize if this gets long. I'm simply trying to give you all enough information to help me out. I'm writing (almost finished, actually), my first VB.Net application. It's a forms...
5
3735
by: HJ | last post by:
Hi all, Consider an Access 2002 run-time application on Windows XP. The controls on a form are locked until the user clicks an Edit button. The form is based on a query and all controls are...
2
14881
by: Daniel | last post by:
I use an Access database to basically take data exports, import them, manipulate the data, and then turn them into exportable reports. I do this using numerous macros, and queries to get the data...
3
2505
by: Sarah Smith via AccessMonster.com | last post by:
I am creating a database of documents that need to be worked on, are int eh proress of being worked on, and have been completed. Sometimes the same document (an updated version) comes back for more...
5
3306
by: Ross A. Finlayson | last post by:
Hi, I'm scratching together an Access database. The development box is Office 95, the deployment box Office 2003. So anyways I am griping about forms and global variables. Say for example...
0
937
by: Max | last post by:
If you don't want to read the drivel in my main message body here is the question at the end. How do you find a string in a column and make the BindingNavigator Navigate to the correct row?? ...
7
4527
by: john | last post by:
In my form I have a master table and a details table linked 1xM. I can search through the whole parent table but I also like to be able to search through the child table fields to find parent...
11
10973
by: jennifersalcido | last post by:
Hello All, I am working with two tables that contain inventory data: 1) INVENTORY contains item_number, description, etc. This data is relatively straight-forward, one record per item_number....
0
7136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7182
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7232
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5490
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4923
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4611
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1430
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.