I am doing a prog in VB6…..the following code is problematic….please help……?
2. im having a string variable “tab” to assign a table name value(im having many tables..and by using an if loop im assigning any of the tables to this variable tab”)
3. now this code shows error to open a recordset….
(i.e. i want to connect all the fields(*) from that string variable-“tab” which contains the table name”
the code is :
Set rs = db.OpenRecordset(“select * from “& tab&” “)….
This is the way i hope. but it dosen’t works….says that there is some syntax error…….
Please help Me…i’ll be very much greatfull to You………….
Thank You…………
Favorite Answer
sql = “select * from ” & tab & ” where…”
set rs=db.openrecordset(sql)…
- Academic Writing
- Accounting
- Anthropology
- Article
- Blog
- Business
- Career
- Case Study
- Critical Thinking
- Culture
- Dissertation
- Education
- Education Questions
- Essay Tips
- Essay Writing
- Finance
- Free Essay Samples
- Free Essay Templates
- Free Essay Topics
- Health
- History
- Human Resources
- Law
- Literature
- Management
- Marketing
- Nursing
- other
- Politics
- Problem Solving
- Psychology
- Report
- Research Paper
- Review Writing
- Social Issues
- Speech Writing
- Term Paper
- Thesis Writing
- Writing Styles