tatendatiffany
Board Regular
- Joined
- Mar 27, 2011
- Messages
- 103
i keep getting error mismatch but i have ensure the table names and columns are the same could someone please help me: here is a piece of the code
Dim Index As Sheets
Set Index = Sheets
Sheet1.Activate
Dim Element As Worksheet
Set Element = ActiveSheet
Element.Activate
SQL1 = "SELECT FROM " & Sheets("Index").range("TABLES_S").Value & Sheets("Index").range("TableClmn").Value & Sheets("Element").range("GESTATUS").Value
Debug.Print SQL1
on the higlighted line that is when i get the error
Dim Index As Sheets
Set Index = Sheets
Sheet1.Activate
Dim Element As Worksheet
Set Element = ActiveSheet
Element.Activate
SQL1 = "SELECT FROM " & Sheets("Index").range("TABLES_S").Value & Sheets("Index").range("TableClmn").Value & Sheets("Element").range("GESTATUS").Value
Debug.Print SQL1
on the higlighted line that is when i get the error