Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
| Search | Today's Posts | Mark Forums Read
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 23rd, 2006, 08:39 AM
Registered User
 
Join Date: Oct 2006
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Forms and tables in Access 2003

Hi,

Im currently creating a database for the company i work for.. Im a complete novice when it comes to Access, having had barely any experience with it.

Ive found myself in a bit of a pickle! I need to display a series of products that my company use. I have 2 separate tables for this information. InputMedia and OutputMedia (as we copy data from various forms to others) however when i make a form and try to display this information in a combo box i get the InputMediaID values showing instead of the ProductCodes that i want to display. As i scroll through the records the right product codes show, its only when i open the combo box.. HELP! ive been driving myself crazy over this hehe

Regards,

Marc F.

  #2 (permalink)  
Old October 24th, 2006, 07:04 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Hi,

  Use the combo box wizard to create your combo box, and then only select the column(s) you actually want to be displayed. Access will automatically pull and use the PK of the table in the cbo.

   Alternatively, make sure the query behind the combo box is pulling the columns you want, then make sure the column count has the same number of columns, and that they are displayed properly.

Ex:

Column Count: 4
Bound Column: 1
Column Width: 0";1";1";1"

This will display the last three and not the PK, and be bound to the PK.

Does this help?


mmcdonal
  #3 (permalink)  
Old October 24th, 2006, 07:10 AM
Registered User
 
Join Date: Oct 2006
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yeah thanks alot mate, thats what i eventually did yesterday some1 on another forum helped me :)



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding Tables/Forms Paula222 Access VBA 1 April 17th, 2006 02:59 PM
merge data in tables-access 2003 megank Access 2 April 5th, 2006 11:31 AM
VC++ .NET 2003 Windows Forms Designer Problem alphatrak General .NET 0 February 15th, 2006 08:44 PM
Data in Word forms in Access Tables HowardB Access VBA 1 January 9th, 2004 09:18 AM
prevention of edit forms/tables damnnono_86 Access 10 November 17th, 2003 12:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.