Create Login using Visual Basic 6 and MS Access

Поділитися
Вставка
  • Опубліковано 31 жов 2024

КОМЕНТАРІ • 68

  • @iCharanRaj
    @iCharanRaj 10 років тому

    was an useful video..!! Thank You..!! :-)

  • @worldshinester
    @worldshinester 10 років тому

    Good for beginners.. :)

  • @danram1255
    @danram1255 9 років тому +2

    Hello when i debug it marks me cnn.Open but i have them in the same folder can you please help me

  • @nes6335
    @nes6335  11 років тому

    Sorry for the late reply. I encountered that error because the database file is not on the folder with the vb project. So make sure the database and the project are in the same folder. :)

  • @lacyscags7701
    @lacyscags7701 11 років тому

    Could you help me sir ? I have a problem i can't run it ,
    "Format of the initialization string does not conform to the OLE DB specification ."
    Help me plsss :(

  • @sachinthanipun2190
    @sachinthanipun2190 9 років тому

    What should I do for cnn.open highlighted error?????
    Please give me a quick answer

  • @aimanwafri4864
    @aimanwafri4864 11 років тому +1

    ClydeLee Ramos, just asking, the cnn.open.. it happens to me also.. how do you solve it?

  • @surerman77
    @surerman77 10 років тому

    can we change the "username" textbox into combobox?
    so user just need to choose between the privilege he/she has (Admin/User/Guest) or username already inputted to database , before inputting the password?

  • @Kartoonz025
    @Kartoonz025 11 років тому

    there's a problem sir on cnn.connectionstring run-time '446' why is that sir. can you help me.

  • @joysaints443
    @joysaints443 5 років тому

    what section did you declare the login()

  • @arjunpineda5163
    @arjunpineda5163 7 років тому

    when i debug it marks me the private sub login. i wonder when did you declare the login?

  • @TheDeepkar
    @TheDeepkar 9 років тому

    I am getting the same error at cnn.open
    how did you solved it??

  • @landmichaelbuenopabuauzuma8797
    @landmichaelbuenopabuauzuma8797 9 років тому

    thanks a lot men! :D

  • @zooz8334
    @zooz8334 9 років тому

    if i have (Admin+user) in the Database .. and when i log in as a user , another form pop up .. so what is the code that can help me? and thnx

  • @unknownonyx1959
    @unknownonyx1959 9 років тому

    sir i have problems with my codes that keeps having the type mismatch error.
    can you help me?
    pl.Open "Select * from tblusers where user = '" * User.Text & "'", Login, adOpenStatic, adLockReadOnly
    this is the line highlighted on me.
    whats the problem on this?

  • @theprshntaggrwl
    @theprshntaggrwl 8 років тому

    getting error on public sub login()
    in which section u have declared the login...???

  • @saramh6353
    @saramh6353 11 років тому

    i had this problem :
    Error 3706
    it's impossible to find the provider
    what can i do ?

  • @sebastianblaser9335
    @sebastianblaser9335 10 років тому

    Dear Clyde, Thank you for the information, I have an error in private sub login() in this line
    rs.Open "Select * From user Where username = ´" & Text1.Text & "´", cnn, adOpenStatic, adLockOptimistic
    it says "no value given for one or more required parameters" can you please help me?

    • @nes6335
      @nes6335  10 років тому

      you are using "user" which is a reserved word. try to change it. please reply if you are still receiving that error message

  • @dubainepal
    @dubainepal 10 років тому +1

    i have done same but while compiling there is "syntax error from clause"

  • @YeahZentinel
    @YeahZentinel 7 років тому

    How I can make with it a multiple login? :c
    I tried adding elements in the Data base, and only can entry with one user:c

  • @arzmhay3670
    @arzmhay3670 10 років тому

    hi guys how can i connect timer to other label in other form?

  • @glennnim8219
    @glennnim8219 9 років тому

    it says user defined type not defined
    its the code on module
    ADODB.Connection_
    this line
    im newbie at coding and i really need some help for our capstone please help me

  • @jmceleste4846
    @jmceleste4846 10 років тому +2

    error pls help "cnn As ADODB.Connection" error

  • @lonewolfreaper21
    @lonewolfreaper21 11 років тому

    I got this problem "Compile Error: Use-defined type not defined" help pls???

  • @nes6335
    @nes6335  10 років тому

    lonewolfreaper21 i think you did not select the Microsoft ActiveX Data Objects 2.8 Library. Just go to "Project" > "References" > then look for "Microsoft ActiveX Data Objects 2.8 Library" . i hope it will answer your question.

  • @Gajenzask
    @Gajenzask 10 років тому

    ty man

  • @ryuzakilawliet992
    @ryuzakilawliet992 9 років тому

    hi. i have a problem. it always say run-time error 91. object variable or block variable not set. rs.Open "Select * From tblusername Where username ='" & txtuser.Text & "'", cnn, adOpenStatic, adLockReadOnly "how can i debug it please reply. "

  • @neilgonzales1822
    @neilgonzales1822 9 років тому

    sir error.!! method or data member not found help sir..

  • @nes6335
    @nes6335  10 років тому

    @Sara Maher
    Please see your Module1 and check the PublicSub getconnected()
    cnn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\Database1.mdb" & "; Persist Security Info=False;"
    You may have missing letters or symbols. Double check it. Thanks!

  • @maya0508ful
    @maya0508ful 10 років тому

    thanks (y)

  • @rheyarchie3411
    @rheyarchie3411 10 років тому

    ODB driver manager where ko po mahahanap un ?

  • @rheyarchie3411
    @rheyarchie3411 10 років тому

    bro panu ung debug nd kasi pnkta panu ggwin dun sa error na may debug ? pls pm Asap thanks

  • @computerpcdell7622
    @computerpcdell7622 3 роки тому

    Form1 run time error showing
    Compile error:
    user-defined type not defined

  • @kimralphagustin9337
    @kimralphagustin9337 8 років тому

    sir pano po ung error msg na " Item cannot be found in the collection corresponding to the requested name or ordinal" salamat po

  • @eachocanaya7469
    @eachocanaya7469 9 років тому

    i got and solve the problem that you can't access ti login, finally you save your work then try to Run... thats why error con.Open

  • @dubainepal
    @dubainepal 10 років тому

    Need help plz

  • @sancarcar1713
    @sancarcar1713 10 років тому

    Lots of thanks...(-.*)

    • @nes6335
      @nes6335  10 років тому

      You're welcome! :)

  • @bastetv6624
    @bastetv6624 10 років тому

    error pls help Text1.setfocus error

    • @nes6335
      @nes6335  10 років тому

      make sure that the name of your Textbox is correct.

  • @sarjhon
    @sarjhon 10 років тому +1

    How did you debug the "cnn.open" error? u didnt show it in the video cause you skip it.

    • @nes6335
      @nes6335  10 років тому

      I encountered that error because the database file is not on the folder with the vb project. So make sure the database and the project are in the same folder. :)

    • @norayunimohamad4788
      @norayunimohamad4788 9 років тому

      ClydeLee Ramos i also got prob cnn.Open...Database and Project are already in a same folder?so How? Can you help me please?

    • @anjskitchen
      @anjskitchen 8 років тому

      +ClydeLee Ramos my database and my project are in the same folder why i have a problem in cnn.Open?

  • @danbrawnn
    @danbrawnn 8 років тому

    HI all! If you get an ERROR on this line "Public cnn As ADODB.Connection", i got the SOLUTION.
    If you have copied the code from the blog, you have copied multiple "_" after the public declaration and before the sub "getconnected", so you have to delete the "_".

  • @dubainepal
    @dubainepal 10 років тому

    showng error in private sub login() this line
    rs.Open "select * from user where username ='" & Text1.Text & "'", cnn, adOpenStatic, adLockReadOnly

    • @nes6335
      @nes6335  10 років тому

      what is the exact error message

    • @dubainepal
      @dubainepal 10 років тому

      my error is "syntax error in from clause" , in (rs.Open "select * from user where username ='" & Text1.Text & "'", cnn, adOpenStatic, adLockReadOnly)
      line

    • @nes6335
      @nes6335  10 років тому

      "user" is a reserved word.. try changing the name of your table to "tbluser"

    • @dubainepal
      @dubainepal 10 років тому

      thank you very much sir it really work

    • @nes6335
      @nes6335  10 років тому

      you are welcome, sir. :) if you have any questions please don't hesitate to write a comment

  • @jesryloccena9680
    @jesryloccena9680 8 років тому

    sir may error po sa "&"

  • @anjskitchen
    @anjskitchen 8 років тому

    cnn.Open? what's wrong with that?

  • @nitinsingh6850
    @nitinsingh6850 9 років тому

    bhai tera hi h sahara

  • @geananrielgeniza7317
    @geananrielgeniza7317 10 років тому +1

    Reply po kayo agad kailangan ko po na ito asap..Reply po..

  • @dubainepal
    @dubainepal 10 років тому

    cnn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\RAIN\Desktop\unsuccess username pass\username.mdb;Persist Security Info=False;"

  • @geananrielgeniza7317
    @geananrielgeniza7317 10 років тому

    nag dedebug po dun s may module dun s conn.Open pano nyo po naayos un d b po un dn problema nyo dun s video

    • @nes6335
      @nes6335  10 років тому

      Ano po yung exact error message?