Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query an SQL Server Table Problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Query an SQL Server Table Problem
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01158161
Message ID:
01158161
Views:
71
I am trying to query a sql server table using the following:

sqlexec(lnconnection,"Select * from invoices where invoices.ccustnum Like ?p_custnumparameter and invoices.ddatetimefield Like ?p_datetimeparameter","v_myresult")

if I enter a date it returns the proper results, if I enter % (wildcard) I get no results

I need to get all records for a customer regardless of date not only records for a specific date
For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life. John 3:16
Next
Reply
Map
View

Click here to load this message in the networking platform