Skip to main content
Question

How to select the first of multiple answers returned in a query.

  • September 18, 2023
  • 0 replies
  • 69 views

How can I select the first result found in a query with multiple results?

In the example below, the 'Correct Hauler Name' column is a query that searches for values containing: {#Column Number# .CT. [Hauler]} within the

.

I get Multiple values in the column 'Correct Hauler Name', I need only the first value the query founds.



------------------------------
Cristian Carrion
------------------------------

This topic has been closed for replies.

AdamKrzyzanek
Forum|alt.badge.img+10
  • Registered
  • September 18, 2023

You can use formula Part.
If result is formula query, then you may need to convert it first ToText.

Example Code:

//without Conversion
Part([Correct Hauler Name],1,";")

//with Conversion
Part(ToText([Correct Hauler Name]),1,";")



------------------------------
Adam Krzyzanek
------------------------------