Concatenation For Control Name

Mar 7, 2008

Hi all

Is it possible to use a variable to finish the name of a control?

e.g.

Cell = me.A1 (where A1 is a lablel with the name a1)

forms![Myform]! "Cell".forecolor = 65280

What I am basically trying to do is to have a variating control name that i can change the color of.....too long to explain why really.

Can anyone help me please....is this possible?

Thanks

View Replies


ADVERTISEMENT

Using A String Concatenation To Refer To A Control Name?

Feb 28, 2015

know if there is a way to use a string concatenation to refer to a control name. eg. Referring to Control1, Control2, Control3, Control4, etc using something like Me.["Control" & "1"], Me.["Control" & "2"], etc

View 6 Replies View Related

Concatenation

Dec 20, 2005

Hi,

Just wondered if someone could help me with this prob?

The following text appears in a text box on a report

=[HirerCurrHouseNo] & " " & [HirerCurrAddress1] & Chr(13) & Chr(10) & [HirerCurrAddress2] & Chr(13) & Chr(10) & [HirerCurrTown] & Chr(13) & Chr(10) & [HirerCurrPostcode]

My prob is that if say "Address line2" is blank, I get horrible blank line in address (which looks rubbish when pirnting a letter!). What I would really like to do is move the lines up so they show as a proper address..

eg
Mr Joe Bloggs
29 The Street
Anytown
HD11AG

Not

Mr Joe Bloggs
29 The Street

Anytown
HD11AG
Thanks - And Merry Xmas!

View 1 Replies View Related

Concatenation

Sep 30, 2006

Hello,


I have a query ... i hope that you can help me solve it!

I am creating a database where i was the ID to be concatenated from 3 fields. I did that well i think i did but when i save the concatenation of the ID is not saved in the table .. :confused:


In the ID field in the form i added this in its control source [ =[Field1] & "" & [Field2] & "" & [Field3] ]

.. In the form it concatenated fine but in the table all the fields are saved except for the ID ... :rolleyes:


Help please!

View 2 Replies View Related

Self Concatenation

Mar 27, 2005

H ow to concatenate the records of a single field with iteself
forexample

invoice no:
1
2
3
4
5
...

i want it to be written as
1,2,3,4,5,6

can it be done
can i concatenate records with each other of the same field.

View 3 Replies View Related

String Concatenation

Sep 14, 2007

In the table, i already had a few columns:

string1 string2 string3
001 1 1.5
001 2 6.4


I'd like to add a new column and concatenate the strings in previous columns with additional characters:

string1 string2 string3 string4
001 1 1.5 c-001-b01_1_5x
001 2 6.4 c-001-b02_6_4x
002 3 7 c-002-b03_7x

Is there a good way to do this? Thanks in advance.

View 2 Replies View Related

Please Help With Concatenation Query

Mar 8, 2006

I have a table that I need to query that looks something like this:

ID Type Product ID
123 Health 323
123 Health 424
123 Dental 424
124 Health 323
125 Dental 323

What I need to see is something like this:

ID Type Product ID
123 Health 323 + 424
123 Dental 424
124 Health 323
125 Dental 323

In other words, I need to have the Product ID field concatenate for like ID and Type. I know it would likely involve writing some code but I am a total beginner in that respect and I don't know where to even begin. I could really use some help. Of course I need this as soon as possible! :(

To make matters worse (well, maybe it does), I am using Access 97.

Thanks so much!!!

View 4 Replies View Related

Concatenation Frustration!

Jul 26, 2007

Hey everyone,
Well i've searched, and have been trying to use 'fConcatenateFldGroupBy' in a query in order to perform the following combining of data with a criteria requirement...

All data is in one table: (frequently re-imported, so no relationships)
Obviously data needs to be stored more efficiently, but I have no control over the imported data structure. Here is what I'm after:

Table structure:
ID - Name - Status - Comments
1120 - One - Pass - uniquecomment1
1120 - One - Fail - uniquecomment2
1120 - One - WIP - uniquecomment3
345 - Two - Pass - uniquecomment5
345 - Two - WIP - uniquecomment6

Need a query to format data as:

ID - Name - Status - Comments
1120 - One - Fail - uniquecomment1, 2, 3...
345 - Two - WIP - uniquecomment5, 6..

As you can see comments need to be concatenated with commas seperating them.
As for the Status determination, it needs to be determined for the ID based on certain conditions. If at least 1 is fail, all fail. Iff all pass, all pass. If no fails and 1 wip, WIP, etc.

I have wasted too many hours trying to figure this out on my own, so I'm seeking your help! Any input would be appreciated. Thank you.

View 7 Replies View Related

Concatenation Module

Aug 18, 2006

Please can anyone give me a piece of code to combine the text from memo fields in 25 different queries and put it in one text box for printing?
Thanks.

View 2 Replies View Related

Aggragate Concatenation

Aug 22, 2006

I have some data and I want produce a summary report. The trouble is that I need to combine F2 in to one value. AggOfF2 is produced by taking the distinct values for F2 in the group, and concatenating them together with a "/" seperating each element. I don't believe there is a built in function to do what I want, but can I create a function in VB? If so, how?

SOURCE
F1 F2 AMT
1 A 1
1 A 1
1 B 1
2 C 1
3 D 1

SELECT F1, AggFunc(F2) AS AggOfF2, SUM(AMT) as SumOfAmt
FROM SOURCE GROUP BY F1;

SUMMARY
F1 AggOfF2 SumOfAMT
1 A/B 3
2 C 1
3 D 1

Thanks,
David

View 4 Replies View Related

String Concatenation Into A Textbox

Dec 13, 2005

This really is more of a VB than an Access question, but I need it answered, and I don't know a good VB forum so....

I have a text box that I'm trying to add text to, I have a loop, and every time through the loop it's supposed to concatenate new text into the text box by appending it to the end. I can't seem to be able to find a way to do this. I can't use the <&> operator, and VB doesn't have a <+=> operator (I wish I could do this in C/C++, but oh well). Any ideas? Or do I have to set the existing text to a string, concatenate the new text onto that, and then set it to the textbox?

View 3 Replies View Related

Concatenation Of Query Text

Sep 10, 2006

Can anyone please give me an Access 2000 VB module that will concatenate [Portia - 1 query.text1] with [Portia - 1 query.text2] and type the result in textbox [Alltext]? Thanks.

View 1 Replies View Related

Forms :: Invalid Control Property - Control Source

Sep 24, 2013

I added a new field to one of my tables and query, but when I try to add a control for that field into my form it is not recognising it and the field isn't appearing in the sources for the form, even though the table is sourced to the form? Or am I going to have to do the usual and redo the entire form because I made a minor adjustment?

View 1 Replies View Related

Forms :: Web Browser Control Inside A Tab Control Display

Jun 18, 2014

I have a form with a tab control, inside the tab control I placed an ActiveX control (Microsoft Web Browser). These are at the bottom of the form.

Everything displays fine if the entire form fit on the screen but if the form is too long and I scroll down the browser control is getting obscured by the tab control and getting chopped off (the contents are covered). It is as if the browser control is staying in space where it was and moving behind the tab control as I scroll.

This problem does not occur if I place the browser control directly on the form. Also I note that the browser control is sitting correctly within the tab control.

I have been through all the settings and properties of both controls and haven't been able to fix it. I searched all over the web but no one has previously stumbled across this one by the look of it.

See the attached image ...

View 3 Replies View Related

New Field Does Not Show In Control Source For Form Control

May 28, 2015

I have table that I had to add a new field to which we update with a form. I tried to add a control for the new field but the field does not show up in the list for the control source. I am trying to add a list box to the form with a blank and 5 options.

I have attached screen shots of the table design and the form. The table has the field in datasheet view and I have manually entered a few entries in it but it still will not show in the control source for the form control. The top section of the form is where we enter and select the data for the new records. The bottom section (circled in red) autofills the matching record, from separate tables, for updating with the new entries.

I have added form controls for modified fields in the past so I am confused about why this is happening.

View 2 Replies View Related

Reference A Control On A Subform In A Tab Control!

Aug 3, 2006

OK. I have searched and searched and every thread dances around similar situations but none seem to address this particular one. I am trying to make a control on a sub form visible/not visible depending on the condition of a control on a main form. The catch is that the control I'm trying to change the state of is on a subform located in a tab control. I've tried a thousand combinations and none seem to work. How do I reference the control on the subform in a tab control?

Main Form: frmMemberMain
Tab Control: TabCtl12
Tab Control Page: 2
Subform: frmChildren
Control on subform: txtRelationship

Can someone please help before my brain explodes!! Thanks! :eek:

View 5 Replies View Related

Control Validation For 1st Control

May 17, 2006

Hi,

I have reviewed the posts for 'Control Validation' and dowloaded the sample database kindly posted by ansentry.

In the PaymentAmount example, a name has to be entered in the first control before an amount is enterered in the second control. If the controls and tab order are reversed, the validation doesn't work.

I have a form where the 1st Control needs validating before moving on. The code below doesn't work.

Private Sub Form_BeforeUpdate(Cancel As Integer)
If IsNull(Me.Employee_No) Then
MsgBox "Employee No Required", vbCritical, "Data required "
Cancel = True
Me.Employee_No.SetFocus
Exit Sub
End If

End Sub


Any help greatly appreciated.


John

View 2 Replies View Related

Need Help With Tab Control

Aug 3, 2006

Hi,

I have used a tab control to create some forms. However, I can't modify or delete any of the information. It's seems like the forms are just read-only.

How can I change it so that I can modify and delete info please?

Thanks in advance.

View 14 Replies View Related

Tab Control

Dec 11, 2007

Hi all,

I am creating a DB using tab controls, I have my information in each tab section. When I come to view in Form View and move my mouse around the tab page it shudders for some reason? anyone know why and how i can fix it?? Thanks:confused:

View 1 Replies View Related

Tab Control On A Tab Control

Feb 8, 2005

I would like to be able to add a tabbed control to one of the pages of a tab control. I have made several attempts and it hasn't worked. There is no reference to it in MS help. I have seen many databases with this facility (not necessarily MS Access). Can anybody offer a suggestion please.

Peter

View 3 Replies View Related

Tab Control Help

Apr 9, 2005

I usually use wizard for creating forms only now I need to have tabs for quite a few forms.

I've recently discovered that you cant simply put your labels and field on a page then select another tab and put other labels and fields on. I've tried looking frmSampl provided by microsoft put cannot figure out hows the single form with tab control on it works.

Can anyone direct me to online help with forms or provide any help with the tab control tool?

View 7 Replies View Related

Tab To Next Control

Jun 20, 2005

I want a Command Button on a form to move to the next Command Button. I basically want to do the same thing as the Tab button on my keyboard. However, I do not want to use the keyboard.

View 5 Replies View Related

'03 Tab Control

Jul 15, 2005

We have just been upgraded to '03 and while poking around noticed that the tab control changed a little. The main diff was the active tab is slightly easier to pick up because of the highlight line (See attachment). Does anyone know of any other changes in the newer version in the tab control or any other control?

View 6 Replies View Related

Tab Control Within Tab Control

Sep 12, 2005

This seems like it would be easy enough, but I can't seem to find an answer. I'd like to put a tab control on one page of a main tab control. I've tried to select the page and create a new tab control and cut and paste existing tab control, but in both cases the tab control pastes into the detail section of the form (where my main tab control is) and thus appears on all pages. Anyone know what I need to do? Thanks for any help.

View 3 Replies View Related

Tab Control

Mar 3, 2006

I have added tab controls to my already created form. My original page sits there alone, not on a tab control. How do I put it on a tab control without having to re do everything??? I tried to put it on a tab/page and it lost all the lable names and changed it to numbers.

View 4 Replies View Related

Bar A Control Box

Mar 22, 2006

Dear All,

I'd like to bar (make unable to use ) a combo list on my form. The state of the combo list should depend on the true/false state of a checkbox.

I don't know whether it is possible in access.

I'd like to ask for your help.

Thanks in advance.

BR,

Sz.Cs.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved