Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WestWind/database filter help
Message
 
 
To
30/06/2011 09:57:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01516279
Message ID:
01516865
Views:
37
>Ok, fixed the blank page issue. Next step is getting it to show only the record for the number you type in. There's an input box and a submit button. I want to match the input to a record number and have it only display that data. Would something like this work?
>
>
cmd = "SELECT TOP(200) bol_number, pro_number, client_city, client_state, client_zip, customer_city, customer_state, customer_zip, ship_date FROM " + THESQLTABLE + "WHERE " + fdPrNo + "=pro_number"
>
>The code for fdPrNo is this:
fdPrNo = ALLTRIM(UPPER(Request.Form("PRNO")))
>
>I know the code in the query isn't correct, but is that where I would go about doing what I want?

Try
text to cmd textmerge noshow

    select top (200) bol_number, pro_number, client_city, client_state, client_zip,
     customer_city, customer_state, customer_zip, ship_date
    FROM <<TheSQLTable>>
    WHERE pro_Number = ?m.fdPrNo
endtext
This way you will use parameters in your command.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform