Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting Access 2.0 to Access 97
Message
 
À
01/04/1998 15:39:32
Marc Bui
Omicron Financial, Inc.
Houston, Texas, États-Unis
Information générale
Forum:
Microsoft Office
Catégorie:
Access
Divers
Thread ID:
00088462
Message ID:
00088808
Vues:
29
>Here is the whole statement:
>
>SQLText = "UPDATE DISTINCTROW tmpCCBuild01 INNER JOIN tmpComp "
>SQLText = SQLText & "ON (tmpCCBuild01.CustomerID = tmpComp.CustomerID) "
>SQLText = SQLText & "AND (tmpCCBuild01.ProjectID = tmpComp.ProjectID) "
>SQLText = SQLText & "SET tmpComp.C" & RMo & "S = [sales], "
>SQLText = SQLText & "tmpComp.C" & RMo & "SF = [sqft]
>SQLText = SQLText & "WHERE ((tmpCCBuild01.Period='" & sCPer & "')) "
>SQLText = SQLText & "AND tmpCCBuild01.PhaseDate < #" & MaxPhaseDate & "#;"
>
>Set CompQry = CurrDB.CreateQueryDef("qryaMonthData", SQLText)
>CompQry.Execute
>CurrDB.QueryDefs.Delete "qryaMonthData"
>
>
>Can you see what is wrong? Thanks.
>
>Marc

May I ask, where do you get the values for [sales] and [sqft]. This way (within brackets), Access thinks that you are refering to a field where you wish to get data, unless they are parameters.

If they are parameters, you'll have to use the parameters object to set them before running the query.

Hugo Dahl
"My get up and go must've got up and went"
-Steve Tyler, Aerosmith
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform