Oct 16th, 2005, 12:04 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Access Combo box to auto fill
I am having problems with my combo boxes
I have 1 combo pulling from my table fine but I want when it pulls the data for textbox2 to pull corisponding information from same table.
I am lost on this any help would be appriciated.
Last edited by jmhfloor; Oct 18th, 2005 at 10:21 AM .
Reason: Not resolved
Oct 16th, 2005, 01:26 PM
#2
Re: Access Combo box to auto fill
Do you mean like you have a combo being populated with a query result. Then when the user select a combo item you want to populate the textbox with some related data to the cbo selection? If so then you need to execute a secondary query with the combo selection as the criteria of the call. Like "SELECT SomeField WHERE SomeField = '" & combo1.text & "'"
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Oct 16th, 2005, 01:50 PM
#3
Thread Starter
Addicted Member
Re: Access Combo box to auto fill
I am still having problems with that part. I dont think I am grasping the how it is working so I cant do what I need to do. I am going to post my file. Can you please take a look at it and see if you can explain to me what I need to do?
Attached Files
Oct 16th, 2005, 04:18 PM
#4
Re: Access Combo box to auto fill
I made a few changes and its working.
Attached Files
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Oct 18th, 2005, 08:02 AM
#5
Thread Starter
Addicted Member
Oct 18th, 2005, 09:58 AM
#6
Re: [RESOLVED] Access Combo box to auto fill
Glad to help. I didnt have the Cabin Names linked table so I just took it out. I just wanted to show how to retireve the data and enter it. You can change to your needs.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Oct 18th, 2005, 10:20 AM
#7
Thread Starter
Addicted Member
Re: [RESOLVED] Access Combo box to auto fill
I do not know if it is that my system is not wanting to open the file but I have coppied the code and the tables and I can pull the information up but when I pull up a product it is not filling in the cost of the product in the cost column. Any Ideas?
Oct 18th, 2005, 10:25 AM
#8
Re: Access Combo box to auto fill
Look at the Cost columns RowSource property.
Code:
SELECT Products.Cost FROM Products;
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Oct 18th, 2005, 10:52 AM
#9
Thread Starter
Addicted Member
Re: Access Combo box to auto fill
Still did not change. I can select the information from the drop combo box but it still will not automaticly fill in the box when I select something. The information is being pulled from the table and I can select the correct price under the cost but it is not automaticly filling it in.
Oct 18th, 2005, 02:04 PM
#10
Re: Access Combo box to auto fill
What do you mean "filling it in". Just like my example db or something different?
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Oct 18th, 2005, 02:14 PM
#11
Thread Starter
Addicted Member
Re: Access Combo box to auto fill
I can not get your DB to run. It gives me a read only pop up and will not let me try it out and see if it is what I need. I am trying to get it to pull Product 1 and that is linked to cost of product 1 and I want it to automaticly print in textbox when product 1 is selected.
However I think I have just done what I am looking to do by using the Report function and sub forms. I need to do a couple of more test then I will post my crazy DB on the page.
Oct 18th, 2005, 02:33 PM
#12
Re: Access Combo box to auto fill
Ok, but make sure my db is not marked as Read Only on your filesystem. It is an 2002-2003 file format so it should be ok.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Oct 19th, 2005, 08:02 AM
#13
Thread Starter
Addicted Member
Re: Access Combo box to auto fill
Here is my DB file. It is not how I was trying to get you to help me do it but it works. Let me know what you think!
Attached Files
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width