Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Hi, I have a table in sql server with four records- supplierID,suppliername,start year and end year. I would need the inputs using inputbox in excel vba...I want to transfer that data as 'insert into ' in sql table..I am new to SQL and VBA.Please help.Thanks
visakh16
Very Important crosS Applying yaK Herder
52326 Posts
Posted - 2009-07-15 : 12:40:31
you need to design the form in vb and then use a stored procedure to pass values down to sql as parameters. the sp will be like
CREATE PROC InsertData@supplierID int,@suppliername varchar(50),@start year int,@end year intAS BEGININSERT INTO YourTable VALUES (@supplierID,@suppliername,@start year ,@end year)ENDGO