Results 1 to 8 of 8

Thread: MSACCESS Database with Passwords

  1. #1

    Thread Starter
    Addicted Member Codehammer's Avatar
    Join Date
    Aug 2004
    Posts
    164

    MSACCESS Database with Passwords

    Hi,

    I Have MSACCESS Database with Password Setup. When Opening the Database in Access it Asks for it. When in VB.net 2003, I Use the oledbDataconnection. This Asks for the Password and username, I Tried All Combinations, Passowrd Only, Admin, Administrator as Username, Blank Username, Password Only, Etc.
    In MSACCESS Do I Need to Set up Workgroups or something under Security. MSACCESS - ver.2003
    Curiosity SKILLED the cat
    Google Talk from your Mobile phone

    Chat from your mobile or get an emulator like J2ME Wireless Toolkit 2.2

  2. #2
    Hyperactive Member CyberHawke's Avatar
    Join Date
    May 2004
    Location
    Washington DC
    Posts
    477
    This should get you into the db

    VB Code:
    1. Dim cn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Database Password='YourPassword';Data Source=C:\Program Files\MyProgram\MyDatabase.mdb;")

    You will have to ignore the it's a result of the website not knowing how to parse out actual text from an attempt to make a face
    Whadayamean it doesn't work....
    It works fine on my machine!

  3. #3

    Thread Starter
    Addicted Member Codehammer's Avatar
    Join Date
    Aug 2004
    Posts
    164

    Will try Later

    New Issues:
    in Access the Modified column is Type Datetime. So In Vb it Goes sometihng like this:
    row.modified = now.toshortdatestring &" " & now.toshorttimestring.

    The Date Always Saves but Never the Time, it always goes to 12:00 Am. I've Tried all Combination, in putting the date without Seconds, Etc, Even manually, But it does not Work. E.G. now.hour & " " & now.minute, Stil Nothing.

    Even now.tolocaltime Does not Work.

    What I mean by does not work is that it Saves if I Update The Dataset, as Soon As I Will Restart the Applicaiton, then The Date is Saved, but the time Goes to 12:00 Am
    Curiosity SKILLED the cat
    Google Talk from your Mobile phone

    Chat from your mobile or get an emulator like J2ME Wireless Toolkit 2.2

  4. #4
    Hyperactive Member CyberHawke's Avatar
    Join Date
    May 2004
    Location
    Washington DC
    Posts
    477
    try this
    VB Code:
    1. Format(Now, "MM/dd/yyyy hh:mm:ss")
    Whadayamean it doesn't work....
    It works fine on my machine!

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Did you try what CyberHawke mentioned above?

    I don't see why you need to put in Now.ToShortDateString and Now.ToShortTimeString.

    A simple Now().ToString() will do in this case.

    Post some code related to this.

  6. #6

    Thread Starter
    Addicted Member Codehammer's Avatar
    Join Date
    Aug 2004
    Posts
    164

    Nope

    Nope, the date Thing Does Not Work, it Gives no Errors on Compile, And In the program the DataGrid and dataset Shows the Actual date, After update, the Thing Resets only the Time to 12:00 AM and the Date is Correct.

    The problem with the password for the Connection String still exists. Must I Now Download it from the Other Place and Respost it here.

    If anyone's got time Try doing the Date thing in there.
    Curiosity SKILLED the cat
    Google Talk from your Mobile phone

    Chat from your mobile or get an emulator like J2ME Wireless Toolkit 2.2

  7. #7
    Hyperactive Member CyberHawke's Avatar
    Join Date
    May 2004
    Location
    Washington DC
    Posts
    477
    what is the thread id?

    I do a lot of work with Access and Excel, many of the MDB files I work with are password protected and I have no problem with opening them.

    As far as the date/time issue, it may have something to do with the way your table is configured. without having the actual mdb to look at, I can't help a lot, but the format function I gave you is one that is right out of a working project I have here.
    Whadayamean it doesn't work....
    It works fine on my machine!

  8. #8

    Thread Starter
    Addicted Member Codehammer's Avatar
    Join Date
    Aug 2004
    Posts
    164

    Its Here

    http://vbforums.com/showthread.php?s=&threadid=303975

    One Guy made me Search 10 Pages so I Could prove I Posted before. The database Wont Allow passwords. If you Got time Please Put in the date Properly
    Curiosity SKILLED the cat
    Google Talk from your Mobile phone

    Chat from your mobile or get an emulator like J2ME Wireless Toolkit 2.2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width