473,320 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Not sure how to ask this question about data on a form

IN the form design, I have made a certificate with a number of combo boxes. My ultimate outcome of this is to click on the membership Id. number and then automatically the name, and date of birth appears on the certificate. I have spent days trying to figure this out, and I have no clue how to do it.
Aug 6 '07 #1
1 1103
ADezii
8,834 Expert 8TB
IN the form design, I have made a certificate with a number of combo boxes. My ultimate outcome of this is to click on the membership Id. number and then automatically the name, and date of birth appears on the certificate. I have spent days trying to figure this out, and I have no clue how to do it.
You've given me very little to work on so I'm assuming you have a Combo Box of membership IDs and after 1 is selected, you automatically want to populate the Name and Data of Birth Fields. If this is so, here is a basic code template:
Expand|Select|Wrap|Line Numbers
  1. Private Sub cboMembershipIDs_AfterUpdate()
  2. If Not IsNull(Me![cboMembershipIDs]) Then
  3.   Me![txtName] = DLookup("[Name]", "tblYourTable", "[Membership ID]=" & Me![cboMembershipIDs])
  4.   Me![txtDateOfBirth] = DLookup("[Date of Birth]", "tblYourTable", "[Membership ID]=" & Me![cboMembershipIDs])
  5. End If
  6. End Sub
  7.  
Aug 6 '07 #2

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

Similar topics

3
by: Pete | last post by:
I'm currently doing a database that uses comboboxes to look up records in other tables, whether they be lookup tables or otherwise. When a user needs to add an item to one of these tables, the...
4
by: Mason | last post by:
This is probably an incredibly newbie-ish question. I just haven't had the cause to use many subforms before, so I'm pretty sure I just don't understand it correctly (even after reading up on it)....
4
by: sparks | last post by:
We have a database that reads in and formats raw data. We were using queries to format the data per person and outputing reports. The other database has the persons personal information. I changed...
10
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can get to their values easily to write to a...
1
by: Li Zhang | last post by:
Hi guys, I am trying to write a httpmodule to implement upload file progress bar. I searched web and got some sample code from code project...
2
by: Woody Splawn | last post by:
I have a question about technique with regard to filling drop downs. I have a Winform that has several different tabs and tables associated with it. In an effort to keep the load time small I...
2
by: ewingate | last post by:
I am currently going through an MCAD/MCSD training guide for Exam# 70-316. It is a great book but it shows it's age with certain subjects. The chapter on databinding is one of these. This somewhat...
1
by: sharpy | last post by:
i hope this is a simple answered question this program has been annoying me for some time, its pretty much the first thing i have attempted to do in perl. its a pretty simple guestbook type thing....
29
by: Brad Pears | last post by:
Here is a simple OO design question... I have a Contract class. The user can either save an existing contract or they start off fresh with a blank contract, fill in the data and then save a...
4
by: banderson | last post by:
Hello, I am having a problem getting a new record in a subform to append to the underlying table. When I add a new record to the main form, the subform is blank, except for the ID field, which is...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.