Pytanie : Stół using SQL i zmienna

I potrzebować tblPAA z zmienna definiować w the okręt podwodny procedure.

DoCmd.RunSQL "WSZYWKA W tblPPA (intPPAID, intIncidentID, txtPPAEffectiveDate, txtPPAPeriod, datPPAExpiryDate, txtFirstName, txtMiddleName, txtLastName, txtAddress, txtCity, txtStateProv, txtPostalZip, txtDOB, txtDatedDate, txtInvestigator, intViolationSelfExclusion) WYBIÓRKA (strPPANum, intIncidentID, datPPAEffectiveDate, strPPAPeriod, datPPAExpiryDate, strFirstName, strMiddleName, strLastName, txtAddress, txtCity, txtStateProv, txtPostalZip, datDOB, datDate, strInvestigator, strViolationSE); "

When I biegać ten linia kod I dostawać: "składnia błąd (przecinek) w zapytanie wyrażenie"

Odpowiedź : Stół using SQL i zmienna

próbować to


DoCmd.RunSQL "WSZYWKA W tblPPA (intPPAID, intIncidentID, txtPPAEffectiveDate, txtPPAPeriod, datPPAExpiryDate, txtFirstName, txtMiddleName, txtLastName, txtAddress, txtCity, txtStateProv, txtPostalZip, txtDOB, txtDatedDate, txtInvestigator, intViolationSelfExclusion) Wartość ("" & strPPANum & "", "& intIncidentID &", # " & datPPAEffectiveDate & " #, "" & strPPAPeriod & "", # " & datPPAExpiryDate & " #, ""& strFirstName &"", ""& strMiddleName &"", ""& strLastName &"", ""& txtAddress &"", ""& txtCity &"", ""& txtStateProv &"", ""& txtPostalZip &"", # " & datDOB & " #, # " & datDate & " #, ""& strInvestigator &"", ""& strViolationSE &" "); "
Inne rozwiązania  
 
programming4us programming4us