Quiery field

yantan2006

New Member
Joined
Jun 30, 2011
Messages
27
good day to all

I have noticed a strange command and very confused what it the purpose of it. while selecting field from the table. on the first field all the field from the table is selected. on next field there is this command line:

Searchable: [LastName] & " " & [FirstName] & " " & [Company] & " " & [EmailAddress] & " " & [JobTitle] & " " & [BusinessPhone] & " " & [MobilePhone] & " " & [FaxNumber] & " " & [Address] & " " & [City] & " " & [StateProvince] & " " & [ZIPPostal] & " " & [CountryRegion] & " " & [ZIPPostal] & " " & [WebPage] & " " & [Notes] & " " & [CustomerName] & " " & [FileAs]

if you see starting string. there is word "searchable:" and then coloum/field.

what is the purpose of writing this searchable before all the fields and what it does?

on the next (3rd ) field this is the command

CustomerName: Company

does this changes the company name from lastname and first name to company field?

thank you very much for your assistance
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Searchable and CustomerName are aliases or alternate names. In Access Query by Design, you create aliases by writing the alias and then a colon and then the field, fields, or expression that will define the alias.

We do this in SQL a lot (with a different syntax, if you are writing raw SQL):
SELECT FirstName & " " & LastName as CustomerName

The above standard SQL query would concatenate FirstName and LastName into a single value and call it CustomerName


The big long value called Searchable is just a huge concatenation of a lot of fields. It's probably not the best solution, but apparently someone wants to use it to create a kind of key to search on.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,221,889
Messages
6,162,624
Members
451,778
Latest member
ragananthony7911

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top