QR Code generator using MS Access | MS Access VBA | Rover

Поделиться
HTML-код
  • Опубликовано: 20 окт 2024
  • ell come to rover RUclips channel. Today I am going to show you how to create a QR code generator using MS Access. Here I use simple VBA code for this project.
    Download code file by clicking following link
    drive.google.c...
    #rover #msaccess #vba

Комментарии • 34

  • @mktabocs-ye5vw
    @mktabocs-ye5vw 15 дней назад

    Many many thanks for this great effert!!!

  • @raffaeledimaio9526
    @raffaeledimaio9526 Год назад

    SEI UN GRANDE, lo sarai ancora di più , il tempo di provarlo. :-)

  • @skorza69
    @skorza69 Месяц назад

    Thats Incredible!!! Congrats for your work for us!

  • @darrellfyffe8375
    @darrellfyffe8375 Год назад +3

    Your video is the first that, I really seen that shows the potential of QR codes being generated in access. A big thanks!!!! Is the a way to save QR image as the name of the text box data?

    • @bigalc4528
      @bigalc4528 11 месяцев назад +1

      Hi
      change this line - savePath = Application.CurrentProject.Path & "\qr_code.bmp"
      to savePath = Application.CurrentProject.Path & "\" & qrData & ".bmp"

  • @navisalomi
    @navisalomi 7 месяцев назад

    Excel work. Thanks so much.

  • @ThePinkMr88
    @ThePinkMr88 Год назад

    Einwandfreie Funktion. Kann ich nur empfehlen

  • @diababdelkrim9454
    @diababdelkrim9454 9 месяцев назад +1

    thanks, really good job

  • @raffaeledimaio9526
    @raffaeledimaio9526 Год назад +1

    Hi, this error appears, how can I resolve it? Thank you, "Compilation error: Invalid topic number or property"ssignment" alla riga : result = URLDownloadToFile(0, apiUrl, savePath, 0, 0), si evidenzia : "URLDownloadToFile(0, apiUrl, savePath, 0, 0)"

  • @MoElkomy
    @MoElkomy Год назад

    You are great thank you very much
    I will try it

  • @fingerpgreen
    @fingerpgreen Месяц назад +1

    Words do not appear in the QR if the language is Arabic

  • @sunfaceshanmugam
    @sunfaceshanmugam Год назад

    Very Nice... thanks a Lot!! it was used in my Project successfully... will it work permanently or like trail? bze it is depending on other website..

  • @mahmouduae1
    @mahmouduae1 15 дней назад

    how can the QR be shown in the report

  • @MoElkomy
    @MoElkomy Год назад +1

    amazing it works thank you again

    • @mahmouduae1
      @mahmouduae1 15 дней назад

      ازاي ممكن اظهر ال QR في التقرير

  • @mohamedhakim903
    @mohamedhakim903 9 месяцев назад

    very good

  • @p.kanoklertwongs1751
    @p.kanoklertwongs1751 10 месяцев назад

    Thank you.

  • @sastrawjy
    @sastrawjy 4 месяца назад

    Sorry i cannot use the general code on ms acces 64 byte, can you support

  • @imamasari0206
    @imamasari0206 Год назад

    good

  • @sonaliabewardana5771
    @sonaliabewardana5771 Год назад

    Best🎉

  • @Mamoiavarte
    @Mamoiavarte Год назад

    Excellent!

  • @KliperAds
    @KliperAds Год назад

    it doesnt work for russian language, why?

  • @samueltesemma6995
    @samueltesemma6995 Год назад

    Any suggestions for MS Access 64 Bit

    • @bigalc4528
      @bigalc4528 Год назад +1

      Try Changing the declaration at the top to :
      Private Declare PtrSafe Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" _
      (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, _
      ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long

    • @BrandonLaxtonMusic
      @BrandonLaxtonMusic 10 месяцев назад

      #If VBA7 Then
      Private Declare PtrSafe Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" _
      (ByVal pCaller As LongPtr, ByVal szURL As String, ByVal szFileName As String, _
      ByVal dwReserved As LongPtr, ByVal lpfnCB As LongPtr) As Long
      #Else
      Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" _
      (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, _
      ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
      #End If
      Private Sub btnGenerateQR_Click()
      ' Declare variables
      Dim apiUrl As String
      Dim qrData As String
      Dim savePath As String
      Dim result As Long
      ' Get QR data from textbox
      qrData = Me.txtqrdata.Value
      ' Construct API URL
      apiUrl = "api.qrserver.com/v1/create-qr-code/?data=" & qrData & "&size=200x200"
      ' Specify save path for BMP file in the same directory as the Access database
      savePath = Application.CurrentProject.Path & "\qr_code.bmp"
      ' Download QR code image as BMP file
      #If VBA7 Then
      result = URLDownloadToFile(0, apiUrl, savePath, 0, 0)
      #Else
      result = URLDownloadToFile(0, apiUrl, savePath, 0&, 0&)
      #End If
      ' Check if download was successful
      If result = 0 Then
      ' Display the downloaded image in the image control
      Me.imgQRCode.Picture = savePath
      Else
      MsgBox "Failed to download QR code image.", vbExclamation
      End If
      End Sub

  • @edvpepitoperez
    @edvpepitoperez Год назад

    Include multiple fields and then retrieve them in another table

  • @supportsilkroadnickel
    @supportsilkroadnickel Год назад

    for ms acess 64bit failed

    • @nanaoseistanleykesse4560
      @nanaoseistanleykesse4560 Год назад

      Private Declare PtrSafe Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" _
      (ByVal pCaller As LongPtr, ByVal szURL As String, ByVal szFileName As String, _
      ByVal dwReserved As LongLong, ByVal lpfnCB As LongPtr) As LongPtr

    • @bigalc4528
      @bigalc4528 Год назад +1

      Try Changing the declaration at the top to :
      Private Declare PtrSafe Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" _
      (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, _
      ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long

    • @BrandonLaxtonMusic
      @BrandonLaxtonMusic 10 месяцев назад

      #If VBA7 Then
      Private Declare PtrSafe Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" _
      (ByVal pCaller As LongPtr, ByVal szURL As String, ByVal szFileName As String, _
      ByVal dwReserved As LongPtr, ByVal lpfnCB As LongPtr) As Long
      #Else
      Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" _
      (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, _
      ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
      #End If
      Private Sub btnGenerateQR_Click()
      ' Declare variables
      Dim apiUrl As String
      Dim qrData As String
      Dim savePath As String
      Dim result As Long
      ' Get QR data from textbox
      qrData = Me.txtqrdata.Value
      ' Construct API URL
      apiUrl = "api.qrserver.com/v1/create-qr-code/?data=" & qrData & "&size=200x200"
      ' Specify save path for BMP file in the same directory as the Access database
      savePath = Application.CurrentProject.Path & "\qr_code.bmp"
      ' Download QR code image as BMP file
      #If VBA7 Then
      result = URLDownloadToFile(0, apiUrl, savePath, 0, 0)
      #Else
      result = URLDownloadToFile(0, apiUrl, savePath, 0&, 0&)
      #End If
      ' Check if download was successful
      If result = 0 Then
      ' Display the downloaded image in the image control
      Me.imgQRCode.Picture = savePath
      Else
      MsgBox "Failed to download QR code image.", vbExclamation
      End If
      End Sub

  • @ibnsinapro
    @ibnsinapro 5 месяцев назад

    not working

  • @daniellewest9644
    @daniellewest9644 8 месяцев назад

    Mine is getting hung up on "Me.imgQRCode.Picture=savepath". How do I correct this? I have named the image box imgQRcode. Thus, I'm not sure if its not the save path

    • @NormanSorizo
      @NormanSorizo Месяц назад

      Hi, any update on this? im also getting this error also. thanks