N
Nathan
I was Mistaken i need to delete a table in vb coding here
is the code:
sql = "INSERT INTO PAPS ( PapsLLLL, PapsAutoIncrement,
PapsZero, PapsFinalNumber, PapsFinalBar ) "
sql = sql & "SELECT '" & Forms!frmCompany!CompanyPaps
& "' AS Expr1, "
sql = sql & Forms!frmCompany!InitialPaps & " AS
Expr2, " & randomNumber & " AS Expr3, '"
sql = sql & Forms!frmCompany!CompanyPaps & space &
Right("000000" & Forms!frmCompany!InitialPaps, 6) & space
& randomNumber & "' AS Expr4, '"
sql = sql & Forms!frmCompany!CompanyPaps & Right
("000000" & Forms!frmCompany!InitialPaps, 6)
sql = sql & randomNumber & "' AS Expr6;"
****HERE IS WHERE I NEED THE TABLE CLEARED***
sql = "INSERT INTO PAPSBAR ( PapsLLLL,
PapsAutoIncrement, PapsZero, PapsFinalNumber,
PapsFinalBar ) "
sql = sql & "SELECT '" & Forms!frmCompany!CompanyPaps
& "' AS Expr1, "
sql = sql & Forms!frmCompany!InitialPaps & " AS
Expr2, " & randomNumber & " AS Expr3, '"
sql = sql & Forms!frmCompany!CompanyPaps & space &
Right("000000" & Forms!frmCompany!InitialPaps, 6) & space
& randomNumber & "' AS Expr4, '"
sql = sql & Forms!frmCompany!CompanyPaps & Right
("000000" & Forms!frmCompany!InitialPaps, 6)
sql = sql & randomNumber & "' AS Expr6;"
is the code:
sql = "INSERT INTO PAPS ( PapsLLLL, PapsAutoIncrement,
PapsZero, PapsFinalNumber, PapsFinalBar ) "
sql = sql & "SELECT '" & Forms!frmCompany!CompanyPaps
& "' AS Expr1, "
sql = sql & Forms!frmCompany!InitialPaps & " AS
Expr2, " & randomNumber & " AS Expr3, '"
sql = sql & Forms!frmCompany!CompanyPaps & space &
Right("000000" & Forms!frmCompany!InitialPaps, 6) & space
& randomNumber & "' AS Expr4, '"
sql = sql & Forms!frmCompany!CompanyPaps & Right
("000000" & Forms!frmCompany!InitialPaps, 6)
sql = sql & randomNumber & "' AS Expr6;"
****HERE IS WHERE I NEED THE TABLE CLEARED***
sql = "INSERT INTO PAPSBAR ( PapsLLLL,
PapsAutoIncrement, PapsZero, PapsFinalNumber,
PapsFinalBar ) "
sql = sql & "SELECT '" & Forms!frmCompany!CompanyPaps
& "' AS Expr1, "
sql = sql & Forms!frmCompany!InitialPaps & " AS
Expr2, " & randomNumber & " AS Expr3, '"
sql = sql & Forms!frmCompany!CompanyPaps & space &
Right("000000" & Forms!frmCompany!InitialPaps, 6) & space
& randomNumber & "' AS Expr4, '"
sql = sql & Forms!frmCompany!CompanyPaps & Right
("000000" & Forms!frmCompany!InitialPaps, 6)
sql = sql & randomNumber & "' AS Expr6;"