Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access 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
 
Old January 29th, 2012, 10:33 AM
Registered User
 
Join Date: Jan 2012
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Even no Pop up coming. If you select the combo only the First column shows but the 2nd column which should be populate to Targeted text box were still blank.
 
Old January 29th, 2012, 03:39 PM
Friend of Wrox
 
Join Date: Sep 2010
Posts: 245
Thanks: 5
Thanked 24 Times in 23 Posts
Default

There is still something off. It may be something other than the VBA code. Since I cant see your form I can't spot the issue.


If this were my project what I would do is create a new blank form. Create a new combo box and text box. See if you can make it work on this new test form.

Hopefully you have your database is split. This way you can link your test app (front end) to test data (back end).

If not split see: Splitting your Access database into application and data
__________________
Boyd Trimmell aka HiTechCoach (.com)
Microsoft Access MVP Alumni 2010-2015
 
Old January 30th, 2012, 05:04 AM
Registered User
 
Join Date: Jan 2012
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sir i made the new test one.

Tablename: TestTable
Fields: Properties, Rent, Targeted, Difference

Comboname: TestCombo
Fields: PropertyList, TargetedAmount

Where "Properties" Is a Combo box
Control Source- Properties
Row Source- SELECT [TestCombo].[ID], [TestCombo].[PropertyList], [TestCombo].[TargetedAmount] FROM TestCombo ORDER BY [PropertyList];
Bound Column- 2

Combobox After Update code
Private Sub txtProperties_AfterUpdate()
Me.txtTargeted = Me.txtProperties.Column(2)
End Sub

Sir IF BOUND COLUMN of Combo box is 0 or 1 the "PropertyList" was selected and goes to table but the value "Targeted" field are still blank.
IF BOUND COLUMN of Combo box is 2 and when i select the combo here is an error message "The value you entered is not valid for this field". Thanks sir i hope you can help me...
 
Old January 30th, 2012, 11:27 PM
Friend of Wrox
 
Join Date: Sep 2010
Posts: 245
Thanks: 5
Thanked 24 Times in 23 Posts
Default

What is the Combo Box's Column Count set to?
__________________
Boyd Trimmell aka HiTechCoach (.com)
Microsoft Access MVP Alumni 2010-2015
 
Old February 1st, 2012, 12:37 PM
Registered User
 
Join Date: Jan 2012
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Good Day,

Column Count - 3





Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate a text box from a combo box value dnf999 Access VBA 7 February 6th, 2012 02:24 PM
Count in combo box(display results in text box) mboyisis Access 4 April 4th, 2008 07:08 AM
Combo box choice creating filtered combo box stevensj5 Access 11 September 13th, 2007 11:33 AM
Combo box and Text box Rudner Access VBA 4 November 16th, 2004 02:57 PM
Combo Box and Text Box Rudner Beginning VB 6 1 November 8th, 2004 04:48 PM





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