Hi
Im new to access, made the plunge straight from php to oh what does that button do in access. ive figured out most of what i want to do but im stuck with how to run a sql update query from a buton click
I have no back ground and VBA but intend to start learning after i have this little project finished. the sql query i wish to run is
Update PaperAccounts
SET InvoiceNumber = (text box in form called txtBox1)
WHERE AccountNumber = (text box in form called txtBox2) AND InvoiceStatus = 0
The form the button is on is called "PaperAccountsInvoiceDetails"
I have tried running this code using the vba builder on the button click action but nothing....
From what i have read online i need some other code around the sql command.
If anyone could help me with this i would be most greatful and can jump into vba knowing something atleast.
Thanks in advance
Glynn
Im new to access, made the plunge straight from php to oh what does that button do in access. ive figured out most of what i want to do but im stuck with how to run a sql update query from a buton click
I have no back ground and VBA but intend to start learning after i have this little project finished. the sql query i wish to run is
Update PaperAccounts
SET InvoiceNumber = (text box in form called txtBox1)
WHERE AccountNumber = (text box in form called txtBox2) AND InvoiceStatus = 0
The form the button is on is called "PaperAccountsInvoiceDetails"
I have tried running this code using the vba builder on the button click action but nothing....
From what i have read online i need some other code around the sql command.
If anyone could help me with this i would be most greatful and can jump into vba knowing something atleast.
Thanks in advance
Glynn
