Who is So familiar with MS Access

GTRZ

Administrator
Staff member
  • Apr 27, 2006
    19,480
    10,860
    113
    conenct Access db from Visual Basic or from what?

    If its from Visual Basic

    Option Explicit
    'declare global variable
    Public cnnDb As New ADODB.Connection

    Public varInvNo As Long

    Sub Main()
    'change into the project directory
    ChDrive Left(App.Path, 2)
    ChDir Mid(App.Path, 3)

    'open the database
    cnnDb.Open "Provider = Microsoft.Jet.OLEDB.3.51;" _
    & "Data source = dbname.mdb"
    MsgBox ("Connection is now open")

    'load the main form
    frmInvoicesView.Show 1

    'close the database
    cnnDb.Close
    MsgBox ("Connection is now closed")

    End Sub
     

    Lich

    Member
    May 4, 2006
    11,508
    24
    0
    Warcraft III DOTA Map
    GTRZ said:
    conenct Access db from Visual Basic or from what?

    If its from Visual Basic

    Option Explicit
    'declare global variable
    Public cnnDb As New ADODB.Connection

    Public varInvNo As Long

    Sub Main()
    'change into the project directory
    ChDrive Left(App.Path, 2)
    ChDir Mid(App.Path, 3)

    'open the database
    cnnDb.Open "Provider = Microsoft.Jet.OLEDB.3.51;" _
    & "Data source = dbname.mdb"
    MsgBox ("Connection is now open")

    'load the main form
    frmInvoicesView.Show 1

    'close the database
    cnnDb.Close
    MsgBox ("Connection is now closed")

    End Sub
    its not that link machan.. karanna one a whole system doing only using access. they ask some functions as well
     

    x-pert

    Member
    Jun 13, 2006
    20,952
    77
    0
    Lich said:
    its not that link machan.. karanna one a whole system doing only using access. they ask some functions as well

    Ithin SQL statesment tikak liyala daapan machang functions walata. :)

    select <Field name> from <table name> etc. machang.

    Try this site: http://www.w3schools.com/sql/sql_intro.asp

    If you can tell what you want to do in simple english (I mean the functions) I can convert them into SQL.

    But will take some time machang. Im in the office.
     

    Lich

    Member
    May 4, 2006
    11,508
    24
    0
    Warcraft III DOTA Map
    x-pert said:
    Ithin SQL statesment tikak liyala daapan machang functions walata. :)

    select <Field name> from <table name> etc. machang.

    Try this site: http://www.w3schools.com/sql/sql_intro.asp

    If you can tell what you want to do in simple english (I mean the functions) I can convert them into SQL.

    But will take some time machang. Im in the office.


    k.. i think im stuck in this switchboard thing.. others are ok.. tawa case ekak date eken hadagannath one.. ekath karaganna one
     

    Malinga

    Well-known member
  • Jul 20, 2006
    61,301
    1,013
    113
    Lich said:
    k.. i think im stuck in this switchboard thing.. others are ok.. tawa case ekak date eken hadagannath one.. ekath karaganna one

    switchboard eka gana honda vataheemak laba ganna puluvan oyata access vala thiyana example Project eka baluvahama.
     

    GTRZ

    Administrator
    Staff member
  • Apr 27, 2006
    19,480
    10,860
    113
    Lich said:
    its not that link machan.. karanna one a whole system doing only using access. they ask some functions as well

    ehenam access eke help balapan oka ehemmama thiyanawa.
    Umba help eke kali install kalla naththan install kara ganin.