I just finished taking an SQL Programming class to get an understanding of SQL's coding syntax and capabilities.
What I want to do now is take an existing Excel spreadsheet which I've developed and code it to do an INSERT into a table in our SQL Database.
Currently the spreadsheet is coded, with VBA, to email itself as an attachment to a user in another department who then manually enters the data. I'm wanting to replace that manual data entry process with an automatic process.
I was considering writing a Stored Procedure then using VBA to connect, execute the procedure with variable values passed to it.
I'm lacking in knowledge on what syntax to use, in VBA, to get the connection to the database established and to execute the Stored Procedure.
I'm new to SQL programming & I would consider myself a mid-level VBA programmer.
Any suggestions regarding getting this would be much appreciated.
Thanks - Mike P.
What I want to do now is take an existing Excel spreadsheet which I've developed and code it to do an INSERT into a table in our SQL Database.
Currently the spreadsheet is coded, with VBA, to email itself as an attachment to a user in another department who then manually enters the data. I'm wanting to replace that manual data entry process with an automatic process.
I was considering writing a Stored Procedure then using VBA to connect, execute the procedure with variable values passed to it.
I'm lacking in knowledge on what syntax to use, in VBA, to get the connection to the database established and to execute the Stored Procedure.
I'm new to SQL programming & I would consider myself a mid-level VBA programmer.
Any suggestions regarding getting this would be much appreciated.
Thanks - Mike P.