If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Cascading combo box error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-08-12, 17:22
desireemm desireemm is offline
Registered User
 
Join Date: Feb 2004
Location: Alpine Califormia
Posts: 1,709
Cascading combo box error

Hello I have to add two extra columns to my look up table StateCategory and StateServicesCovered




Right now if the users pick a code from the MER Code drop down box, it populates 2 to 3 fields, now I have to add two more columns. Here is what I have so far

Code:
Private Sub MERCodes_AfterUpdate()
Me.Catagory_for_hours = Me.MERCodes.Column(2)
Me.Catagory_for_hours.SetFocus
Me.Catagory_for_hours.Dropdown
Me.Services_Covered = Me.MERCodes.Column(3)
Me.Services_Covered.SetFocus
Me.Services_Covered.Dropdown
Me.NameofWorkshop = Me.MERCodes.Column(4)
Me.NameofWorkshop.SetFocus
Me.NameofWorkshop.Dropdown
Me.MERCodes.SetFocus



End Sub

This is the Code I put in but I'm getting an error message Saying "compiler error - method or data member not found".

Code:
Private Sub MERCodes_AfterUpdate()
Me.Catagory_for_hours = Me.MERCodes.Column(2)
Me.Catagory_for_hours.SetFocus
Me.Catagory_for_hours.Dropdown
Me.Services_Covered = Me.MERCodes.Column(3)
Me.Services_Covered.SetFocus
Me.Services_Covered.Dropdown
Me.NameofWorkshop = Me.MERCodes.Column(4)
Me.NameofWorkshop.SetFocus
Me.NameofWorkshop.Dropdown
Me.StateCategory = Me.MERCodes.Column(5)
Me.StateCategory.SetFocus
Me.StateCategory.Dropdown
Me.StateServicesCovered = Me.MERCodes.Column(6)
Me.StateServicesCovered.SetFocus
Me.StateServicesCovered.Dropdown
Me.MERCodes.SetFocus




End Sub

Not sure what I'm doing wrong? Can anyone help please??

this is my lookup table
Code:
SELECT      ServicesCovered, CategoryForHours, Codes, CodeID, ID, NameOfWorkshop, StateCategory, StateServicesCovered, EventName, EventLocation
FROM          dbo.ServCategorylookup_tbl
it updates this table

Code:
 
SELECT      ID, [Parent ID], ServicesCovered, StateCatagory, StateServicesCovered, Catagoryforhours, EventName, NameofWorkshop
FROM          dbo.TanfActivity_tbl

Last edited by desireemm; 02-08-12 at 17:27.
Reply With Quote
  #2 (permalink)  
Old 02-08-12, 17:33
desireemm desireemm is offline
Registered User
 
Join Date: Feb 2004
Location: Alpine Califormia
Posts: 1,709
this is the lookup table I'm using
Attached Thumbnails
Cascading combo box error-lookuptable.jpg  
Reply With Quote
  #3 (permalink)  
Old 02-09-12, 04:03
jstpierre jstpierre is offline
Registered User
 
Join Date: Nov 2011
Location: Currently in Kabul Afghanistan
Posts: 47
I think there is a parity issue between the two tables.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On