473,406 Members | 2,847 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,406 software developers and data experts.

access 2007 combo boxes

4
Im working in Access 2007 using two Combo boxes to select a category then product type. I am trying to get a couple fields to be displayed based on what the values are in the combo boxes. I have the boxes properly synchronized and working fine. Is there like a submit button I can input or a an after update I can create? I have been searching online and I cannot find anything. here is the code i have for the boxes. there are a couple different forms I would like to do this with, but I just cannot get it to work

Expand|Select|Wrap|Line Numbers
  1. Me.cboProducts.RowSource = "SELECT ProductName FROM" & _
  2.                         " Products WHERE CategoryID = " & Me.cbocategories & _
  3.                         " ORDER BY ProductName"
  4.  
  5. Me.cboProducts = Me.cboProducts.ItemData(0)
  6.  
May 26 '10 #1
8 1834
dsatino
393 256MB
Not totally clear on what you're trying to do, but this is what I think you're trying to do. The attached file has an operational form. You'll have to look at the properties and the code, but it's very minimal.
Attached Files
File Type: zip Example.zip (25.2 KB, 75 views)
May 27 '10 #2
jerken
4
well its not exactly what Im looking to do. I basically I have two combo boxes (state and county) and I want when you select a state, the conty box only shows the ones for that state(that part I have working). then when you choose the county, it would only show the attachments for that county(field1).
May 27 '10 #3
dsatino
393 256MB
Where are you displaying these 'attachments' and where are they stored?
May 27 '10 #4
jerken
4
they are on the table with the county. I Change the field to attchment and then put the file(s) onto that table. Then used the lookup field to associate the county with the state
May 27 '10 #5
dsatino
393 256MB
Ok, still not totally sure...this is my best guess without a visual
Attached Files
File Type: zip Example.zip (91.0 KB, 72 views)
May 27 '10 #6
DanicaDear
269 256MB
Jerken,
I'm probably the last person you'd want helping you on a DB right now (LOL) but I've received so much help here I feel it's my obligation to try to help somebody else. There is a sample DB provided in this string that may be on the same lines of what you are trying to do.
Just look in post #3 and don't drown in the rest of the post. :-)
Welcome to Bytes!
Danica

http://bytes.com/topic/access/answer...ther-combo-box
May 28 '10 #7
jerken
4
@DanicaDear
that is actually what I am trying to do. Now I just need to get it to do the same for mutiple text boxes. Thank you this is a huge help!
May 28 '10 #8
DanicaDear
269 256MB
Perfect. Pay attention to the properties boxes and make sure properties are set similarly. If I could do this, anyone can!! Good luck!
May 28 '10 #9

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

Similar topics

3
by: Alienz | last post by:
Anybody? This is probably a very simple question. I am just testing this on my own. I have 2 tables: Table name:fields Employer: Employer Number (primary key), Employer Name Employee: SIN,...
2
by: codeWarrior007 | last post by:
Hi, I created an access database with cascading combo boxes with the information for each combo box stored in separate tables. I wanted to put the database on SharePoint 2007 but when I put it up...
5
by: bobdydd | last post by:
Hi Everybody I am currently updating a 2000.mdb to a 2007.accdb and I am trying to use the 3.6 DAO Object Library in the tools>references in the vb editor. This produces an error "Name conflict...
1
by: John Kreps | last post by:
I've tried to get combo boxes to work with Access 2007 for days now without success. What I can't get to work is the autocomplete. I've got three simple tables and one form with two controls....
6
by: Dave | last post by:
I want to put the information that the user selects in my combo boxes into a subform that lies on the same form as the combo boxes. Thanks for your help already, Dave
1
by: Dave | last post by:
Hello all, First I'd like to apologize...This post was meant to be put in my previous post, but I tried many times without success to reply within my previous post. Now here goes... I have a...
2
kmartinenko
by: kmartinenko | last post by:
Hi everyone, I have several combo boxes on my form, and while I have designated a column head, I cannot figure out how to default to the column head value. What I really want is for all of my...
3
by: evenlater | last post by:
Using Access 2007, I've found that combo box back colors change to transparent from normal inconsistently for no reason I can discern. Never had that problem in previous versions of Access. I do...
7
by: Toireasa | last post by:
Hi, Newbie Access developer here, and my first post on this forum, so I might not get everything right - thanks in advance for your help and your patience! I'm using Access 2007, in XP. I'm...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.