Close
Duke shfaqur rezultatin -19 deri 0 prej 10
  1. #1
    i/e regjistruar Maska e toni karlosi
    Anėtarėsuar
    24-10-2005
    Postime
    295

    Cool Access - Kufizimi i afatit te perdorimit

    a ka naj kod per ta mbrojtur database-in e krijuar ne access .mendoj per ta kufizuar per nje kohe te limituar psh 2 muaj e pastaj edhe te kete mundesi ta vazhdoj nese vetem kur blersi paguan per ate sherbim

  2. #2
    [L]{I}[N]{U}[X] Maska e Ardi_Pg_ID
    Anėtarėsuar
    28-01-2003
    Vendndodhja
    New York City Haven on Earth
    Postime
    2,679
    toni jep me shume info per ekte gje ... database eshte access ca versjoni programi qe perdor kete database ca gjuhe eshte shkrojtur apo bazohet ne ms access ka shume menyra per te bere ketee gje gjithcka varet se cfare ti kerkon per te bere jep me shume info
    Forgiving Islamic Terrorists is Gods Duty, Our Duty Is To arrange the Meeting
    N. H. Schwarzkopf

  3. #3
    i/e regjistruar Maska e toni karlosi
    Anėtarėsuar
    24-10-2005
    Postime
    295
    tung ardi,

    une e kam bere kete ne Access 2002 duke perdorur ca VBA .

  4. #4
    i/e larguar
    Anėtarėsuar
    30-05-2004
    Vendndodhja
    Ministria e Mbrojtjes Se Republikes Demokratike te Shqiperise
    Postime
    1,499
    Citim Postuar mė parė nga toni karlosi
    pershendetj juve

    valle a nuk ka asnjeri ndonje ide de si behet kjo ???????
    nje metode e thjeshte:

    skedari c:\windows\system32\hidden-file.txt kontrollohet per last-created date. nqs date e sotme eshte me e madhe se data e skedarit atehere "trial" mbaron!

    ka plot gjera qe mund te shtosh si psh reputacionin tim si webmaster. heh!

    file.zip shtuar me poshte ka komplet database. mos harro macron autorun tek macrot.

    Kodi:
    module1
    =============================================
    
    Option Compare Database
    
    'startup() ne VBA???????
    
    Public Function StartUp()
    ExpiryDate
    'no return value but must be a function for macro to be able to call it
    'call this from autoexec macro
    On Error Resume Next
    If Now >= DBEngine(0)(0).Properties("ExpiryDate") Then
    MsgBox "This application has expired. @Please contact ?????????? @to obtain a new version."
    Application.Quit
    Else
    If Err = 3270 Then Exit Function 'property does not exist
    End If
    End Function
    
    Public Function CreateMyFile()
    
    If fIsFileDIR("c:\windows\system32\hidden-file.txt") = -1 Then
    'Do Nothing
    Exit Function
    Else
      On Error Resume Next
    
        Set fs = CreateObject("Scripting.FileSystemObject")
        Set a = fs.CreateTextFile("c:\windows\system32\hidden-file.txt", False)
        a.Close
        
    End If
    
    End Function
    
    'funksioni
    
    Public Function fIsFileDIR(stPath As String, _
    Optional lngType As Long) _
    As Integer
    
    On Error Resume Next
    'Check to see if file exists
    fIsFileDIR = Len(Dir(stPath, lngType)) > 0
    End Function
    
    Public Function ExpiryDate()
    'creates or resets a property called ExpiryDate
    
    On Error Resume Next
    If fIsFileDIR("c:\windows\system32\hidden-file.txt") = -1 Then
    'Do Nothing
    Exit Function
    Else
    CreateMyFile 'create text file
    
    End If
    
    Dim db As Database
    Dim p As Property
    Dim pval As Date
    Set db = DBEngine(0)(0)
    'set the required expiry date (defaults to 30 days from now)
    
    pval = CDate(Now() + 30)
    
    With db
    'check to see if already defined
    Set p = .Properties("ExpiryDate")
    If Err = 3270 Then 'property does not exist
    Set p = .CreateProperty()
    p.Name = "ExpiryDate"
    p.Type = dbDate
    p.Value = pval
    .Properties.Append p
    
    GoTo exit_setexpirydate
    End If
    
    End With
    exit_setexpirydate:
    Set p = Nothing
    Set db = Nothing
    
    End Function

    Kodi:
    module2
    =================================
    
    Option Compare Database
    
    Sub ExpiryDate()
    'creates or resets a property called ExpiryDate
    'to use it type ExpiryDate in the debug window
    'to remove the property type the following in the debug window
    ' DBEngine(0)(0).Properties.Delete "ExpiryDate"
    On Error Resume Next
    Dim db As Database
    Dim p As Property
    Dim pval As Date
    Set db = DBEngine(0)(0)
    'get the required expiry date (defaults to 30 days from now)
    'NOTE: if an invalid date is entered it will generate 00:00:00
    pval = CDate(InputBox("Enter the Expiry Date", "Set Expiry Date", Now() + 30))
    
    With db
    'check to see if already defined
    Set p = .Properties("ExpiryDate")
    If Err = 3270 Then 'property does not exist
    Set p = .CreateProperty()
    p.Name = "ExpiryDate"
    p.Type = dbDate
    p.Value = pval
    .Properties.Append p
    Debug.Print "Expiry Date is : "; p.Value
    GoTo exit_setexpirydate
    Else
    Debug.Print "Expiry Date was : "; p.Value
    p = pval
    Debug.Print "Expiry Date is now : "; p.Value
    End If
    
    End With
    exit_setexpirydate:
    Set p = Nothing
    Set db = Nothing
    End Sub
    Fotografitė e Bashkėngjitura Fotografitė e Bashkėngjitura   
    Skedarėt e Bashkėngjitur Skedarėt e Bashkėngjitur
    Ndryshuar pėr herė tė fundit nga Alket123 : 28-10-2005 mė 00:27

  5. #5
    mos e luaj; I DEBUAR! Maska e qoska
    Anėtarėsuar
    17-05-2004
    Vendndodhja
    tirane
    Postime
    837
    besoj se me mire do te ishte qe aplikacioni te lejohej vetem 100 here te hapej dhe pastaj te mbyllej. Kjo do te ishte dhe me e sigurte pasi Data manipulohet kollaj ne kompjuter :P.

    Mbase edhe qe ky numer te mos inkrementohet nese aplikacioni hapet dhe mbyllet midis 2-3 oreve duke lene nje thread te jashtme te mbaje timerin , pasi sic thame dates ne pc nuk mund ti zeme bese.

  6. #6
    i/e larguar
    Anėtarėsuar
    30-05-2004
    Vendndodhja
    Ministria e Mbrojtjes Se Republikes Demokratike te Shqiperise
    Postime
    1,499
    Citim Postuar mė parė nga qoska
    besoj se me mire do te ishte qe aplikacioni te lejohej vetem 100 here te hapej dhe pastaj te mbyllej. Kjo do te ishte dhe me e sigurte pasi Data manipulohet kollaj ne kompjuter :P.

    Mbase edhe qe ky numer te mos inkrementohet nese aplikacioni hapet dhe mbyllet midis 2-3 oreve duke lene nje thread te jashtme te mbaje timerin , pasi sic thame dates ne pc nuk mund ti zeme bese.
    Aplikimi me lart shembull eshte vetem per 30 dite dhe VBA code nuk eshte as i mbrojtur as fshehur nga perdoruesi.

    Po ka mijera menyra per te shmangur kopjimin. Nese je serioz ne te kete biznes keto jane registry, skedare, dongles, lmgrd licenses me indipedent clocks etj.

  7. #7
    Programues Softueresh Maska e edspace
    Anėtarėsuar
    04-04-2002
    Vendndodhja
    Filadelfia, SHBA
    Postime
    2,573
    Kodi VBA i databazave tė Access mund tė mbrohet duke e kthyer databazėn nė formatin MDE. Nė kėtė format i gjithė kodi pėrpilohet dhe databaza ngjeshet. Kjo nuk lejon leximin apo modifikimin e kodit, si dhe nuk lejon ndryshimin e formularėve dhe raporteve. E vetmja gjė qė mund tė ndryshosh ėshtė informacioni i tabelave. Njė avantazh tjetėr i MDE ėshtė se databaza zė mė pak vend nė hard disk dhe kodi VBA ekzekutohet mė shpejt.

    Me pak fjalė MDE pėrdoret vetėm pėr tė shpėrndarė databazėn pasi e ke pėrfunduar atė. Kjo ėshtė kopja qė i jep klientit, ndėrsa programuesi qė do tė bėjė ndryshime duhet tė ruajė gjithnjė databazėn origjinale nė formatin MDB.

    Pėr tė kthyer databazėn nė formatin MDE, tek menuja kryesore zgjidh Tools > Database Utilities > Make MDE File. Edhe njėherė e pėrsėri qė konvertimi ėshtė i njėanshėm (MDB->MDE) dhe jo anasjelltas, prandaj duhet tė ruani njė kopje tė databazės origjinale nė formatin MDB.
    Edi

  8. #8
    i/e regjistruar Maska e toni karlosi
    Anėtarėsuar
    24-10-2005
    Postime
    295

    Falenderime

    HELLO,

    Ju pershedes te gjitheve per ndihmen ,kurse sa i perket se ky ka afat 30 ditesh atehere mund ta ndroj une kete date .
    Sa i perket asaj se nuk mund ta mbroj kodin ,une them se ka mundesi sepse kodi ne VBA mbrohet me Password dhe ky kod nuk mund te ndryshohe.
    Sidoqofte ju falenderj te gjitheve e posqerisht qoske-n per ndihmen e tij.

    gjithe te mirat

  9. #9
    [L]{I}[N]{U}[X] Maska e Ardi_Pg_ID
    Anėtarėsuar
    28-01-2003
    Vendndodhja
    New York City Haven on Earth
    Postime
    2,679
    nje ide tjeter per mbrojtjenmund te jete lejimi i krijimit te 10-20 fileds ne databaze edhe jo me shume. po perseri mbeshtes mendimin e edspace pasi cado lloj mbrojtje te perdoresh codi i moduleve mund te lexohet edhe une personalisht preferoj kontrollet me ane te registry edhe kontrollit te tyre ajo cka qoska sygjeroi eshte nje opsjon qe mund te ndiqet me registry keys megjithat une mendoj se access eshte pak aout of date ... ky eshte mendimi im personal

    ardi
    Forgiving Islamic Terrorists is Gods Duty, Our Duty Is To arrange the Meeting
    N. H. Schwarzkopf

  10. #10
    mos e luaj; I DEBUAR! Maska e qoska
    Anėtarėsuar
    17-05-2004
    Vendndodhja
    tirane
    Postime
    837
    Besoj se ne shqiperi nuk eshte akoma problemi i licensave dhe prandaj te gjithe i drejtohen aplikacioneve si access etj te microsoft.
    Por kur keto te vihen ne pune mbase do te shohim aplikacione tamam.
    Gjithsesi per momentin eshte me e shpejta dhe e thjeshta.

Tema tė Ngjashme

  1. Manuali i perdorimit te komandave ne IRC
    Nga Albo nė forumin Na bashkoi Albasoul
    Pėrgjigje: 55
    Postimi i Fundit: 28-03-2008, 14:04
  2. Projekti amerikan pėr Lindjen e Mesme tė Madhe
    Nga ORIONI nė forumin Problemet ndėrkombėtare
    Pėrgjigje: 54
    Postimi i Fundit: 26-01-2005, 11:20
  3. VB dhe Access 2000: "Unrecognized database format"
    Nga good devil nė forumin Arti i programimit
    Pėrgjigje: 3
    Postimi i Fundit: 11-02-2004, 13:27
  4. Access - Si ta kthej programin per Linux
    Nga Pogradecari nė forumin Arti i programimit
    Pėrgjigje: 5
    Postimi i Fundit: 19-06-2003, 03:26

Regullat e Postimit

  • Ju nuk mund tė hapni tema tė reja.
  • Ju nuk mund tė postoni nė tema.
  • Ju nuk mund tė bashkėngjitni skedarė.
  • Ju nuk mund tė ndryshoni postimet tuaja.
  •