473,387 Members | 1,722 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,387 software developers and data experts.

Updating text boxes on a form based on a combo box cascade

Hi,

I know there are various answers to this problem available on the web but none of them seem to work for me. I am using Access 2003 to make a form to look up data from a table. I have so far created three combo boxes that cascade down from Name to Project to Date and when this has been chosen I have four textbox fields I want to display based on this selection. I tried linking the last combo box comboDate to update these fields after update by the following:

With Me
.Lead_Name.Value = .Date.Column(1)
.Action_Timescale.Value = .Date.Column(2)
.Bus_contact.Value = .Date.Column(3)
.Actions.Value = .Date.Column(4)
End With

but it doesn't work the boxes remain blank after selecting from the drop down box and I have checked that they are included in the combobox list.
Anyone have anyidea why it isn't working? I'm presuming it might be because it is just basing it on the date which in the database as a whole is repeated for different projects and not linking it to the above comboboxes.
How do I get around this?

Thanks, I really hope that makes sense to someone!

Marianne


P.S. I did manage to get this to work when the last combo box was only linked to the one above i.e. project but not name but as there are multiple projects with the same name I can't use this. I have both type of formed saved (one with the comboboxes all linked but the text boxes not updating and one with the text boxes updating but the dates listed not filtered by the original name).
Oct 1 '07 #1
9 4966
You listed the name of the combo box was comboDate so shouldn't the code read

With Me
.Lead_Name.Value = .comboDate.Column(1)
.Action_Timescale.Value = .comboDate.Column(2)
.Bus_contact.Value = .comboDate.Column(3)
.Actions.Value = .comboDate.Column(4)
End With
Oct 1 '07 #2
You are of course entirely right I worked this out a little while ago and its now working fine so thanks for that, how embarassing!However I still have a problem, one of my text boxes should be a memo but the long entries are cut off ending sometimes halfway through a word any idea why this might be?
Oct 1 '07 #3
stonward
145 100+
I reckon you need to set the Multiline property to Yes....
Oct 1 '07 #4
As far as I'm aware it already is a multiline text box it has multiple lines before it halts abruptly and a scroll bar that you can scroll but the area is blank.
I'm not sure where the multiline option is though it doesn't seem to be in the properties.
Appologies for being a bit clueless,

Thanks

Marianne
Oct 3 '07 #5
stonward
145 100+
No apologies needed....I'm not a real 'expert' yet...just I saw your question and thought I could help...

Wot about the size of the field...set in the table design? What have you got that fields size set to?

Stonward...
Oct 3 '07 #6
I don't think the size is the probelm its a large text box but cuts off after just a few lines leaving a large area of white space even before you scroll down.
Oct 4 '07 #7
stonward
145 100+
No, No, No...

The table that holds that textbox's data...there is an attribute called 'field size'; what is that set to?
Oct 4 '07 #8
Sorry for the delay in replying I have been away.

The original table does not have a field size as it is a memo field and so does not have this attribute.

I have found out why the field is truncating though although I am not sure there is anyway to fix it. Basically the combo box cascade that preceeds the text box is essentially a query and in order to sychronise the text boxes with the combo boxes I have added the addition columns to the query which causes the memo field to truncate. I have tried telling the total to be first with all the other columns as group by but this seems to have absolutely no affect.

Am I fighting a losing battle or is there a way of linking my combo box with a text box on a form so that the memo is still displayed completely?

Thanks Again
Oct 15 '07 #9
stonward
145 100+
Sorry M...been away from the Forum myself for a while.

Have you solved your truncating issue?! How about using text (rich text setting) instead of memo?

Regards

StonwardR
Oct 24 '07 #10

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

Similar topics

1
by: Daniel Hill | last post by:
OK, I have very, VERY basic background knowledge of VB6 and have now upgraded to VB.NET and now I'm struggling to bring up the forms I want. What I am looking to do is to have a click a command...
0
by: Jim | last post by:
Hi, there, I am a beginner on Access. I have been taking so long time to try to figure out his, but so far, no clues. I want to select 2 combo boxes and Access will automatically fill in...
5
by: J. Yuan | last post by:
Hi, I am working on a checkout/inventory system. How can I make a button that when pressed, would update the previous fields transaction number to a table (for example, -3 printers, so that...
3
by: Frustrated Developer via DotNetMonster.com | last post by:
I have posted a couple times on here already and found the user community to be very helpful. I took on a project before I realized how difficult a time I'm having working with a database....
4
by: Macbane | last post by:
Hi, I have a 'main' form called frmIssues which has a subform control (named linkIssuesDrug) containing the subform sfrmLink_Issues_Drugs. A control button on the main form opens a pop-up form...
4
by: KPOJonesECC | last post by:
Hello, I am in the middle of an access database projet but are struggerling with a couple of things. I dont expect anyone to solve the problem for me, but would really appreciate a pointer in the...
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
10
by: chimambo | last post by:
Hi All, I have a little problem. I am retrieving records from a table and I want to update the records using checkboxes. I am able to display the database record quite alright and I have created...
2
by: SHAWTY721 | last post by:
I have a form that contains two combo boxes that are related to each other. I need to find a way to populate my text box based on the criteria of the two combo boxes so the appropriate number...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...

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.