MS Query and Table-value functions

ChrisLane

New Member
Joined
May 22, 2014
Messages
38
Hi All

Is it possible to call a TBF in MS Query?

I tried

select *
from dbo.Report_ImportCartageAndDelivery

but received the error "Parameters were not supplied for the function ...... Statements count not be prepared"

I then tried adding parameters like the following, but received the error "Could not add the table 'dbo.Report_ImportCartageAndDelivery(<company'."

select *
from dbo.Report_ImportCartageAndDelivery(<company country="" code="">, <companypk>, <delivery status="">, <include job="" types="">, 'Other', <discharge port="">,<eta.fromdate>,<eta.tonextdate>,<vessel journey.code="">,<flight voyage="">, <shipment transport="">, <declaration transport="">, <shipment cont="">, <declaration cont="">)<company country="" code=""><companypk><delivery status=""><include job="" types=""><discharge port=""><eta.fromdate><eta.tonextdate><vessel journey.code=""><flight voyage=""><shipment transport=""><declaration transport=""><shipment cont=""><declaration cont="">

I would appreciate any advice on this issue?
Many thanks


</declaration></shipment></declaration></shipment></flight></vessel></eta.tonextdate></eta.fromdate></discharge></include></delivery></companypk></company></declaration></shipment></declaration></shipment></flight></vessel></eta.tonextdate></eta.fromdate></discharge></include></delivery></companypk></company></company'."
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi Kyle
Sorry for delay in responding. I have checked them and they seem correct. Is MS Query able to run/call TBF's?
 
Upvote 0

Forum statistics

Threads
1,203,061
Messages
6,053,308
Members
444,651
Latest member
markkuznetsov1

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