When I select a value from the Section field, it should automatically combine with the corresponding values. (1 Viewer)

moin555

Member
Local time
Today, 21:51
Joined
Feb 6, 2025
Messages
55
When I select a value from the Section field, it should automatically combine with the corresponding values from other columns (taxpayernature, taxpaymnetsection, code) and display as one string. I need code converts numbers into words. I downloaded it from the internet, but it's not running
1747650931466.png
 

Attachments

You just concatenate the column values in the AfterUpdate event of the combo.
 
When I select a value from the Section field, it should automatically combine with the corresponding values from other columns (taxpayernature, taxpaymnetsection, code) and display as one string. I need code converts numbers into words. I downloaded it from the internet, but it's not running
View attachment 119813
You have a table named "nn" with no PK but lists all of the values you need to concatenate.

Which Form has the Combobox where you want to select a "Section" ??
 
You need to provide some context. If the problem is that you only see the first column when you select an item and you want to be able to see all three, then the solution is to modify the RowSource of the combo to be a query that selects the four fields and concatenates three of them.

Select ThePK, Column1 & " " & Column2 & " " & Column3 as ConcatValue
From YourTable
Order by Column1 & " " & Column2 & " " & Column3

The bound column remains ThePK which is always hidden in this situation so the ColumnWidths property should be:
0, 3"

Or Make the 3" longer or shorter as desired so that in most cases 100% of the concatenated value is visible.
 
Are we asking for Section Description to hold those values in that order? :(
 
obviously, the VBA is not running, because there is a code in the Form's Current.
you must Enable the macro (if there is a Yellow warning) to your db.
or before opening the db, right-click on it and on it's Property->Unblock it.
 

Users who are viewing this thread

Back
Top Bottom