Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WestWind/database filter help
Message
 
 
À
30/06/2011 09:57:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01516279
Message ID:
01516865
Vues:
38
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform