Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 20th, 2003, 11:33 PM
jhahn jhahn is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 6 jhahn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
vba access automation bypassing autoexec

Hello,
I'm trying to automate some work processes. Basically, from Excel, I have to open up access and run some things in there.
Unfortunately for me, the person who set up the access database has it so that you've got to enter your initials on setup. I can't get passed this.

I remember reading somewhere that you can have access open up normally if someone goes to it normally, but have it skip initial macros if it comes in through an automation process. Can anyone tell me what I'd be looking for. What property is it?
Thanks.

Jeff

Reply With Quote
  #2  
Old November 23rd, 2003, 01:57 AM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
I can't know your meaning fairly..What's your problem??When u open a access file from excel,u get some trouble in here??

Reply With Quote
  #3  
Old November 26th, 2003, 04:20 PM
jhahn jhahn is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 6 jhahn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
access automation

I'll try to describe things a bit better.

We have a database that we all use at work. When I open it a form pops up asking me to type my initials in. Only once I do that will it then let me go do other database things like printing reports and such.

Now, when I want to automate the printing of reports, I can open up Access from Excel, but I get the same form asking me for my initials.
I would like to be able bypass that form when I'm running a vba script from excel.
I don't mind having to do it when I'm doing things manually, but I'd like to skip it when I'm opening it as part of an automation program.

Thanks.

Jeff

Reply With Quote
  #4  
Old November 27th, 2003, 02:42 AM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
When u open a database,the DB will ask your password??And u will skip this step with automaticlly to do it??This is your meaning??

Reply With Quote
  #5  
Old November 27th, 2003, 06:07 AM
jhahn jhahn is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 6 jhahn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
vba access automation

Well, close.
It's not really a password. It's more just like an identification.
there's a table in the database with my initials. It looks at that table and puts those initials in the form that it shows. The thing is, I've worked a bit more on this and I think it's doing it before the autoexec file is even run.
So it's not really a password because I could type anything in there. It's really more just a way to know who is logged on to keep a record of what you do. I don't know if the fact that it's not a password matters so much. But it does seem to be doing this before the autoexec.

Reply With Quote
  #6  
Old November 27th, 2003, 08:59 AM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
If u will press some key to access when the db is opened,U can try to use vba with sendkey function to send key press to the access.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > vba access automation bypassing autoexec


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway