cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
FiveStar
Level: Powered On

Lookup syntax works but not displaying result

I am trying to reference an ID from a combobox and the syntax is correct but nothing is displaying.

 

Syntax works well for all other fields from datasource except for TourTime.

 

for example: if i want to reference TourDate works well and displays - I've attached a picture (dont know how to add here)

                     Syntax: LookUp('[dbo].[tTour]',TourID=cboTourNum.Selected.TourID).TourDate

 

Problem: if i want to reference TourTime there are no syntax errors but doesnt display anything - I've attached a picture

               Syntax: LookUp('[dbo].[tTour]',TourID=cboTourNum.Selected.TourID).TourTime

               as you can see in the picture there is data in the field, and it is rexognized as a DateTime field with data

 

I've tried to wrap in text, and I successfully achieved that with TourDate because I only wanted to show the date not time from that record. My problem is that they are both DateTime types and both have data but for the TourTime it doesnt display anything at all.

 

Appreciate your time and effort in advance!

 

                      

 

1 ACCEPTED SOLUTION

Accepted Solutions
FiveStar
Level: Powered On

Re: Lookup syntax works but not displaying result

Thank you rebeccas,

 

Yes, they are two separate columns.

 

I guess the syntax was correct, I kept bugging around with it for hours and gave up, logged off for some time but when I came back to it the label was working as expected.

 

Thanks for your input though. 

 

FYI - I replied to this late monday and I suppose I forgot to post or something, anyway thanks for hitting back.

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Lookup syntax works but not displaying result

Is TourTime an actual different column for you datasource? 

 

If it is not you will have to pull the time from the TourDate where it stored. 

 

FiveStar
Level: Powered On

Re: Lookup syntax works but not displaying result

Thank you rebeccas,

 

Yes, they are two separate columns.

 

I guess the syntax was correct, I kept bugging around with it for hours and gave up, logged off for some time but when I came back to it the label was working as expected.

 

Thanks for your input though. 

 

FYI - I replied to this late monday and I suppose I forgot to post or something, anyway thanks for hitting back.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 357 members 6,095 guests
Please welcome our newest community members: