Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

spences10/VBA-Import-Eport-to-SQL-Server

Repository files navigation

VBA Import Export to SQL server

Description

This is an example of using Excel for a front end for SQL server using Excel to validate your data.

It has validation in it to notify the user of the database constraints.

Build

This whole project is solely dependant on you having either a local instance SQL server or a SQL server you can create the sample-model.sql database in.

The files sample-model.slq and sample-data.sql should be used to create the database and data for this project, the scripts were taken from http://www.dofactory.com/sql/sample-database which is a simple database for this project to run from.

Once the database and data scripts have been run then you will need to create the stored procs used by the project spGetAllSupplierProducts.sql, spInsertProducts.sql, spSupplierList.sql and spUpdateProducts.sql.

ImportExport.xlsm is stored as a BLOB instead of being created say via a ps script as it has worksheet controls and some code contained for worksheet events.

You will need to import modImportExport.bas and modValidation.bas, you should then be able to run the Import from the Control sheet of the ImportExport.xlsm workbook.

Still to come

Contributing

Please fork this repository and contribute back using pull requests. Any contributions, large or small, major features, bugfixes and integration tests are welcomed and appreciated but will be thoroughly reviewed and discussed.

About

Excel with validation for a SQL server backend

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published