Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 8th, 2006, 12:28 AM
eastwood99 eastwood99 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 1 eastwood99 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 10 sec
Reputation Power: 0
Saving multiple combo box results

I have a form that is bound to a table. The form has 3 combo boxes. After selecting an option on the 1st box it filters the options in combo box 2 and so on. The problem I ran into is that the table is saving the ID # which is column 1 in my combo box. I want it to record column 2 which is text. I tried changing the bound column field to 2 but a enter parameter field pops up.

this is what I have:

Option Compare Database
Private Sub cboCategory_AfterUpdate()
Dim sType As String

sType = "SELECT [Type].[Type #], [Type].[Type] " & _
"FROM Type " & _
"WHERE [Category ID] = " & Me.cboCategory.Value
Me.cboType.RowSource = sType
End Sub

Private Sub cboType_AfterUpdate()
Dim sItem As String

sItem = "SELECT [Item].[ID], [Item].[Item] " & _
"FROM Item " & _
"WHERE [Type ID] = " & Me.cboType.Value
Me.cboItem.RowSource = sItem
End Sub

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Saving multiple combo box results


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT