I have a form which shows a users details for an audit
Now these users have many app's but I dont know what they are so I created a command button to add applications to the applications table.
This brings up a form with a textbox and a command button labeled Add application. When clicked I want it to add a new column to the applications table with the name of whats in the textbox. but it errors. (now I dont play with Access that much so have gotten a little stuck)
Now tried to make this fast so someone can just type in the name click add and repeat but canna get the first one to work first
Below is the code I have used atm
Private Sub CmdAddApp_Click()
On Error GoTo Err_CmdAddApp_Click
Dim Appname As Column
Appname = txtNewApp
Columns.Append Appname, adBoolean
txtNewApp = ""
Exit_CmdAddApp_Click:
Exit Sub
Err_CmdAddApp_Click:
MsgBox Err.Description
Resume Exit_CmdAddApp_Click
End Sub
Now these users have many app's but I dont know what they are so I created a command button to add applications to the applications table.
This brings up a form with a textbox and a command button labeled Add application. When clicked I want it to add a new column to the applications table with the name of whats in the textbox. but it errors. (now I dont play with Access that much so have gotten a little stuck)
Now tried to make this fast so someone can just type in the name click add and repeat but canna get the first one to work first
Below is the code I have used atm
Private Sub CmdAddApp_Click()
On Error GoTo Err_CmdAddApp_Click
Dim Appname As Column
Appname = txtNewApp
Columns.Append Appname, adBoolean
txtNewApp = ""
Exit_CmdAddApp_Click:
Exit Sub
Err_CmdAddApp_Click:
MsgBox Err.Description
Resume Exit_CmdAddApp_Click
End Sub