Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Text to text issue
David Cummins 
      
3 years ago
I want to select a text value from one table and insert as a text value into another table. For example, I want to select "Blue" from one table and insert the text "Blue" into another table column. Even though I have the target column set to Text, Access is writing in the Primary ID Key number, which is wreaking havoc on creating readable queries.

I suspect my issue is that I am using Dataverse as the table sources. Given that Dataverse is more or less experimental tech, Should I move my tables to SharePoint lists instead?
Alex Hedley  @Reply  
           
3 years ago
Can we see the SQL being used?
David Cummins OP  @Reply  
      
3 years ago
I am using combo box that is writing the SQL. I have a Client Table with a Text Field named "Country". I have Country Table with a list of countries. The combo box selects a country from the Country Table and writes the Country ID to the "Country" text field in the Client Table instead of the name of the country. When I run a query of what clients are from what countries, I only see the country ID and not the name of the country. My users don't want to have to cross reference country ID's so read the query or report.

Here is the Combo Box SQl
SELECT [CountriesT].[ID], [CountriesT].[Countries] FROM CountriesT ORDER BY [Countries];

I know it is something that I am doing wrong, but I don't have these issues when I use Lookup controls instead of Combo Box. Dataverse also automatically creates relationships using Lookup fields. I don't think DV likes Combo boxes, so I may have no choice to use Lookup controls going forward.
Alex Hedley  @Reply  
           
3 years ago
You'd normally want to store the ID
Then use a query to grab the name
David Cummins OP  @Reply  
      
3 years ago
Copy that. Normally that is the solution, but I am developing, or attempting to develop a hybrid solution using Dataverse tables and local tables. Adding and Foreign Key to a DC table and relating is a challenge. Trying to figure out how that works in DV. Anyway, I think DV is presenting the problem.
Alex Hedley  @Reply  
           
3 years ago
So what is the bound value?
If you've got a combo with a hidden ID it's going to use that, if you don't need the ID remove it, or make it the second column and make the width 0
Kevin Yip  @Reply  
     
3 years ago
A combo box can store multiple columns in its row source.  The first column is always the bound column.  You can include related info in subsequent columns.  If the country name is in the 2nd column, you can retrieve it with:   MyComboBox.Column(1)
David Cummins OP  @Reply  
      
3 years ago
Thanks Alex and Kevin. I resolved my issue as I figured out what was happening on the Dataverse table.
Alex Hedley  @Reply  
           
3 years ago
What was happening?

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 8/1/2026 5:37:12 AM. PLT: 1s