Hi Guys,
I am thinking about protecting whole Excel-Access process in my company.
Now consultants have 15 workbooks and after adding new ticket to table adodb connection via VBA is starting:
1. Drop existing table based on its name, for example consultant login: ljar01 will drop table tb_ljar01 from Access Database.
2. Creating new table with headers from Consultant workbook in Access.
3. Inserting whole data from Consultant workbook to Access created table( tb_ljar01).
Problem is sometimes when Consultant accidentally do wrong type of data in his/her workbook. For example he writes Date in TEXT columns instead of TEXT in DATE column.
Adodb Connection and VBA will be work in this case like this:
1. Drop existing table based on its name, for example consultant login: ljar01 will drop table tb_ljar01 from Access Database.
2. Creating new table with headers from Consultant workbook in Access.
3. Here error will be showed.
So in Access table there will empty table tb_ljar01 and my query to gather all consultants' tickets in one big table will not be refreshed.
And my data will be not present....
Have you People maybe any ideas to secure this process?
I think about:
1. Replace Insert Into with command Update. So searching through consultant table in Access and change all existing tickets with new ones (update them) and add not yet existing tickets to this table.
But is it possible within Access or SQL?
2. Protect consultants' workbooks in order to secure data and avoid manually done errors by consutatants within theirs workbooks.
What do you think ?
Maybe you have better ideas to secure workbooks?
Maybe there is a better solution to check if inserting data will be not causing any damages?
Please help,
Warm regards,
Jacek Antek
I am thinking about protecting whole Excel-Access process in my company.
Now consultants have 15 workbooks and after adding new ticket to table adodb connection via VBA is starting:
1. Drop existing table based on its name, for example consultant login: ljar01 will drop table tb_ljar01 from Access Database.
2. Creating new table with headers from Consultant workbook in Access.
3. Inserting whole data from Consultant workbook to Access created table( tb_ljar01).
Problem is sometimes when Consultant accidentally do wrong type of data in his/her workbook. For example he writes Date in TEXT columns instead of TEXT in DATE column.
Adodb Connection and VBA will be work in this case like this:
1. Drop existing table based on its name, for example consultant login: ljar01 will drop table tb_ljar01 from Access Database.
2. Creating new table with headers from Consultant workbook in Access.
3. Here error will be showed.
So in Access table there will empty table tb_ljar01 and my query to gather all consultants' tickets in one big table will not be refreshed.
And my data will be not present....
Have you People maybe any ideas to secure this process?
I think about:
1. Replace Insert Into with command Update. So searching through consultant table in Access and change all existing tickets with new ones (update them) and add not yet existing tickets to this table.
But is it possible within Access or SQL?
2. Protect consultants' workbooks in order to secure data and avoid manually done errors by consutatants within theirs workbooks.
What do you think ?
Maybe you have better ideas to secure workbooks?
Maybe there is a better solution to check if inserting data will be not causing any damages?
Please help,
Warm regards,
Jacek Antek