我在制作VBA课程时遇到了问题.我想创建一个程序,在整个表中输入50,000条记录(在我的情况下是员工表),每次我尝试运行它时都会显示一条错误"Compile Error: Duplicate declaration in current scope."
我的代码如下:
Option Compare Database
Option Explicit
Sub arrayData1()
'This subroutine will pump in 50 k records for the first two columns of EMPLOYEE table.
'Also takes in sample names, attempts to clean the data beofre its entered in the table.
'Declare variable by using keyword DIM
Dim EmployeeFNames() As Variant 'implies array. array is always declared variant datatype.
Dim EmployeeLNames() As Variant
Dim EmployeeType() As Variant
Dim num As Integer, dbs As …Run Code Online (Sandbox Code Playgroud)