Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro to Read user login information

Status
Not open for further replies.

Boris10

IS-IT--Management
Joined
Jan 26, 2012
Messages
97
Location
KE
Dear all,
I am trying to create a macro that reads or picks up the users name as he logs into ACCPAC. I am wondering if anyone has any ideas. Alternatively, i am looking for a way to create a login screen, that will require ACCPAC username and password - how can the password be verified against the one stored in the database.

Any help would be highly appreciated.

P.S

I am using ACCPAC 6.0A and SQL DB
 
Hi Boris,
Passwords are not stored in the SQL DB in Accpac
Regards,

 
Hi,

Thank you for the reply. Any ideas how i can get user's name once he opens my Macro. That's why i was thinking to have something like a second level login where i could verify that the user is who he says he is.

Regards

Boris
 
Session.UserID gives you his ID, then you .Browse the AS0003 view to get names.

But why do you care "who he says he is"? If he logged in with somebody else password, then it doesn't matter. If you want better security, use Windows Authentication.
 
Thank you,

I am developing, a custom workflow. So i need to get userIDs as they open my macro, so as to know, what authorisation levels they possess, requisitions that they have raised and so on and so forth. There is some functionality missing in PW module so i want to add that functionality by creating a macro
.
 
Then use Session.Userid, then .Browse AS0002 for authorizations.
 
Thank you,

Session.UserID is returning null values. Though i tried out the following code from the forum and its working,
Code:
Session.Init "", "IC", "IC0310", "60A"
UserID = Signon.Signon(Session)
txtUserId.Text = Session.UserID
.
Thank you for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top