Q
quartz
Hello, please help me if you can.
I am automating Access from Excel. Primarily, I need to
switch data entry "Required" to "No" for various fields
after the table structure is in place (therefore ADO is
not possible).
Can someone please supply me with the automation code I
need to accomplish this task? Thanks very much in advance.
My code so far appears below, but all I can do so far is
open the app.
Dim appAccess As Access.Application
Dim strFullName As String
Dim strTable As String
strTable = "TABLE_NAME"
strFullName = "FULL_NAME"
'Create a new instance of Access
Set appAccess = CreateObject("Access.Application")
'Open the DB and make it visible
appAccess.OpenCurrentDatabase strFullName
appAccess.Visible = True
appAccess.UserControl = True
'Open a table
appAccess.DoCmd.OpenTable strTable
I am automating Access from Excel. Primarily, I need to
switch data entry "Required" to "No" for various fields
after the table structure is in place (therefore ADO is
not possible).
Can someone please supply me with the automation code I
need to accomplish this task? Thanks very much in advance.
My code so far appears below, but all I can do so far is
open the app.
Dim appAccess As Access.Application
Dim strFullName As String
Dim strTable As String
strTable = "TABLE_NAME"
strFullName = "FULL_NAME"
'Create a new instance of Access
Set appAccess = CreateObject("Access.Application")
'Open the DB and make it visible
appAccess.OpenCurrentDatabase strFullName
appAccess.Visible = True
appAccess.UserControl = True
'Open a table
appAccess.DoCmd.OpenTable strTable