cdavisdccb
Programmer
I've created a form to allow certain users to add a new field/column to an existing table.
The following code is in the VB portion of the form.
Dim strCMPNM As String
DoCmd.RunSQL "ALTER TABLE [tblProduct]" & _
"ADD [" & strCMPNM & "] NUMERIC NULL"
Problem now is that the field format should be set to percentage. Is there a way to do this using VB or SQL?
I'd like the table to store the data in percent that way I dont have to modify all of my reports to convert it.
Any help will be appriciated.
Thanks,
cd
"It doesn't matter how idiot-proof you make it, someone makes a better idiot!"
The following code is in the VB portion of the form.
Dim strCMPNM As String
DoCmd.RunSQL "ALTER TABLE [tblProduct]" & _
"ADD [" & strCMPNM & "] NUMERIC NULL"
Problem now is that the field format should be set to percentage. Is there a way to do this using VB or SQL?
I'd like the table to store the data in percent that way I dont have to modify all of my reports to convert it.
Any help will be appriciated.
Thanks,
cd
"It doesn't matter how idiot-proof you make it, someone makes a better idiot!"