473,387 Members | 1,532 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,387 software developers and data experts.

Populating multiple table fields based on one form

I’m creating a small database in Access 2003(XP) to track issues during software testing. As far as databases go, it’s going to be a relatively small, short term project (No more than 20,000 records in the main table over about 2 months).

I have a main table (Issues) that is populated by a form (IssueAdds). On my form there is a combobox to select Opened by (who created the record). That list is populated by a table called Contacts.

Here is how I am populating the combo for that field:

SELECT Contacts.ID, Contacts.[Last Name] & ", " & Contacts.[First Name] AS Expr1 FROM Contacts ORDER BY Contacts.[Last Name];

I’m using Contacts.ID (a numerical value that is the primary key in the Contacts table) here because I have a smart tag that allows you to email them from the table or form.

Here’s my problem:
I have to export the main table to excel daily (A management thing that I’m not going to be able to change). When I export, the Contact.ID field is displayed as a numerical value. I need it to show the name.

Basically, I need to populate another field in the Issues table with the actual name from the combobox selection in the IssueAdd form.

I had a query that pulled the information however, the query caused problems with a search button I have on another form.

Can I do a dlookup that will export properly? I feel like there is a simple solution that I'm missing. I opened Access for the first time a month ago so I could be missing a very obvious solution. Thanks all!
Oct 31 '08 #1
3 3549
Hi

I'm not sure if I understand this correctly but Is there a reason why you cannot set up a separate query (which won't be used anywhere else) to export the data? if you use form to export the data then I would use the new query to do the actual export.

I hope it makes some sense.

Regards
Emil
Oct 31 '08 #2
The idea is this:

I have a search form (with an attached subform) that does the export. Management wants end users to be able to search, then export the results.
Oct 31 '08 #3
nico5038
3,080 Expert 2GB
I would use a datasheet subform based on the fields you want to show and select on.
Instruct the users to use the right-click pop-up form.
(See: http://www.geocities.com/nico5038/xR...nstruction.zip)

Now in the expotr button OnClick code you can use the Me.Filter to add as WHERE clause to the query for the export.

Getting the idea ?

Nic;o)
Oct 31 '08 #4

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

Similar topics

7
by: Drew | last post by:
I have a db table like the following, UID, int auto-increment RegNo Person Relation YearsKnown Now here is some sample data from this table,
1
by: Jason | last post by:
I have a form that is used for entering and editing site address information. The data in the form is from one table, named Total_Site_Address. There are fields in this table (and controls on...
4
by: Lumpierbritches | last post by:
Thank you once again for any and all assistance. I'm building an application that's getting quite bulky due to the number of forms, macros and procedures. I was wondering if there's a way to use 1...
11
by: dskillingstad | last post by:
I've been struggling with this problem for some time and have tried multiple solutions with no luck. Let me start with, I'm a novice at Access and I'm not looking for someones help to design my...
1
by: keliie | last post by:
I have a relatively simple (I assume) issue which I am at a complete loss to address. My issues is: I want to populate fields in my tables with summary data from the same table. Let me explain: ...
13
by: Mary | last post by:
I'll pulling my hair out on this one and would be so appreciative of any help. I am creating a data entry form to enter results of a student survey. There are 40 questions on the survey. The...
6
by: zuchowra | last post by:
Hi everyone. I need help. I have a combo box in my form that i want to populate multiple text boxes after you select your selection in the combo box. Here is my set up. The Fields that need to be...
4
by: prosad | last post by:
hello, Just solved a problem using Javascript onclick, can click on any cell in a dynamic table and it will pass the innerText object value to my form text field. parts of code given below: ...
0
by: redpears007 | last post by:
Morning all! :) I have a database with multiple linked tables. I have created a search form with one txt box, for entering search criteria, and a listbox for each of the tables to isplay the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.