Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Running 2 recordsets
Scott Adkins 

14 years ago
I am back at it with the security seminar. I have found a couple of solutions to my problem, but am intent on finding the cause.

I am kind of re-engineering the security seminar and it is a great learning experience. I have the log in form which uses login as an independent id (almost like a second password.) So they type in the UserName field and it opens the RS as in the seminar. It returns a Username which then gets plugged into the username field.

It repeats with the password and SQL as in the seminar, then if all is good; will import the tables.

Problem: for some reason, Access will not pass the password from global const to the backend db when importing the tables, so it prompts for the password. Particularly curious because it works beautifully on the previous parts. The only difference I can find is that on import, there are 2 DB/RS open. I have tried closing the first before the CreateDatabaseLinks call, but that doesnt help either. However, I can msgbox the Global Const and it returns it just fine.

Now I think the problem may have something to do with multiple recordsets running. I have tried to use differing variables, but that doesnt seem to help.

I have tried a couple of avenues with no luck. Can 2 recordsets run at the same time, and if so are there any special considerations? Finally, what does that have to do with a global constant (which is still there, I can return it to a message box anywhere I have tried?

As always, thank you for the help.


Reply from Richard Rost:

Generally you shouldn't have any problems running 2 recordsets at once... I do it all the time with input/output pairs (reading from one table to write in another). Just make sure none of your variables overlap. Can you HARDCODE the password into your connect string instead of sending it via a variable? That would at least get you one step closer to figuring out where the problem is.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/16/2026 10:03:42 PM. PLT: 1s