SlideShare uma empresa Scribd logo
1 de 7
Baixar para ler offline
Bill Redirect
Send data directly in your Microsoft Access
                           Documentation: 18/11/2008




       Use this documentation with the product : Bill Redirect 5.0J and more


Software configuration and integration service
                   It's free, fast, and efficient !
           Submit your case to info@billproduction.com
               and receive a customized answer !


              Our Internet site: http://www.billproduction.com/

                       Email: info@BillProduction.com
This documentation demonstrate how
Bill Redirect can sent Serial Scanner (Barcode, Proximity, scale… ) Reader
           numbers directly in Microsoft Access
Step #1
    Download and install Bill Redirect software
http://www.billproduction.com/Bill_COMtoKB.ZIP



                      Step #2




 Disable all except the Serial Port and File section
         Set the Serial Port switch to: OFF
            Set the File switch to: Write
Step #3




                         Click on button: Configuration
       Enter the Serial Port Number where your Peripheral is connected
      Chose the Serial Port Configuration corresponding to your peripheral



If the data sent by your peripheral ends with a [ENTER], then enter 13 in the optional field
                                       otherwise leave it blank
Step #4




                              Click on button: Configuration




In the field “File:” enter:   C:BillProduction.cfgDATETIMESEQ.OUT

                                   Click on button: OK



                         Click on button: Save Configuration
Step #5

                               Microsoft Access Configuration
                      You can download this example via this link:
                                         (MS Access 2003 and more)
                    http://www.billproduction.com/MSAccess01.zip
The following demonstrates how you can receive Bill Redirect data in Microsoft Access via a timer.

   1. Create a sample database Sample.mdb
   2. Create a table with 3 fields:

                      Field Name          Data Type
                    ID_Barcode          Text
                    ID_Date             Date/Time
                    ID_Time             Date/Time

   Save this Table to: BillRedirect
   * Important: Use no Primary Key !

   3. Create a new form and open it in “Design view”
   4. Add on this form 3 Text Box:
                                                                   Each Text Box Properties
                      Form example
                                                            Name              Data / Control Source
                                                            TextBoxBarcode    ID_Barcode
                                                            TextBoxDate       ID_Date
                                                            TextBoxTime       ID_Time


   5. Set Form properties Data / Source: BillRedirect
Step #6

6. Insert the following source code:

   Private Sub Form_Load()
       Me.TimerInterval = 100
   End Sub

   Public Sub Form_Timer()
       Call RX_BillRedirect
   End Sub

   Public Sub RX_BillRedirect()
       On Error GoTo BillRedEnd
       Const TheDirectory = "c:BillProduction.cfg"
       Dim TheFile As String
       Dim TheData As String
       TheFile = Dir(TheDirectory & "*.OUT")
       If TheFile <> "" Then
           Open TheDirectory & TheFile For Input As #1
               Line Input #1, TheData
               'The data is in the variable: TheData
               '...HERE... ADD COMMANDS TO APPEND DATA TO YOUR TABLE

                '----[Example]--------------------------------------------
                DoCmd.GoToRecord , , acNewRec
                TextBoxBarcode.SetFocus
                TextBoxBarcode.Text = TheData
                TextBoxDate.SetFocus
                TextBoxDate.Text = Date
                TextBoxTime.SetFocus
                TextBoxTime.Text = Time
                '----[Example]--------------------------------------------
            Close #1
            Kill TheDirectory & TheFile
        End If
        Exit Sub

   BillRedEnd:
       Debug.Print Err.Description
       Close #1
   End Sub

7. Close and save the form
8. Open the form in mode “Form View”


                      At this step if your configuration is correct
  you can see the data received by your serial peripheral appear in Microsoft Access
                            For more information, consult the product manual:
                        http://www.billproduction.com/Bill_Redirect_Manual.pdf

                Software configuration and integration service
                                     It's free, fast, and efficient !
                             Submit your case to info@billproduction.com
                                 and receive a customized answer !

Mais conteúdo relacionado

Semelhante a Microsoft access VBA communication with RS232 Peripherals

SH 2 - SES 1 - Stitch_Workshop_TLV.pptx
SH 2 - SES 1 - Stitch_Workshop_TLV.pptxSH 2 - SES 1 - Stitch_Workshop_TLV.pptx
SH 2 - SES 1 - Stitch_Workshop_TLV.pptxMongoDB
 
Apache Calcite Tutorial - BOSS 21
Apache Calcite Tutorial - BOSS 21Apache Calcite Tutorial - BOSS 21
Apache Calcite Tutorial - BOSS 21Stamatis Zampetakis
 
Evolutionary db development
Evolutionary db development Evolutionary db development
Evolutionary db development Open Party
 
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling Sencha
 
Full screen Web Browser support RS-232 / TCPIP peripheral (plugin)
Full screen Web Browser support RS-232 / TCPIP peripheral (plugin)Full screen Web Browser support RS-232 / TCPIP peripheral (plugin)
Full screen Web Browser support RS-232 / TCPIP peripheral (plugin)topomax
 
20.project inventry management system
20.project inventry management system20.project inventry management system
20.project inventry management systemLapi Mics
 
Prep 2-booklet-2nd-term-2016-2017
Prep 2-booklet-2nd-term-2016-2017Prep 2-booklet-2nd-term-2016-2017
Prep 2-booklet-2nd-term-2016-2017khawagah
 
MondCloud Semantic Data Hub for Insurance
MondCloud Semantic Data Hub for InsuranceMondCloud Semantic Data Hub for Insurance
MondCloud Semantic Data Hub for InsuranceGeetha Sreedhar, MBA
 
Installing community surveys in connections 5.5
Installing community surveys in connections 5.5Installing community surveys in connections 5.5
Installing community surveys in connections 5.5Roberto Boccadoro
 
MaxTECH Technical Training - Maximo Custom Audit Solution
MaxTECH Technical Training - Maximo Custom Audit SolutionMaxTECH Technical Training - Maximo Custom Audit Solution
MaxTECH Technical Training - Maximo Custom Audit SolutionHelen Fisher
 
CIS 3100 - Database Design and ImplementationScoring Rubric.docx
CIS 3100 - Database Design and ImplementationScoring Rubric.docxCIS 3100 - Database Design and ImplementationScoring Rubric.docx
CIS 3100 - Database Design and ImplementationScoring Rubric.docxmccormicknadine86
 
I doc packaging and mapping techniques.doc
I doc packaging and mapping techniques.docI doc packaging and mapping techniques.doc
I doc packaging and mapping techniques.docVERUS BRASIL
 
Building Your First App with MongoDB Stitch
Building Your First App with MongoDB StitchBuilding Your First App with MongoDB Stitch
Building Your First App with MongoDB StitchMongoDB
 
Product Supplier59,58,8,2.50CIS 3100 - Database Desig.docx
Product Supplier59,58,8,2.50CIS 3100 - Database Desig.docxProduct Supplier59,58,8,2.50CIS 3100 - Database Desig.docx
Product Supplier59,58,8,2.50CIS 3100 - Database Desig.docxstilliegeorgiana
 
Informatica complex transformation i
Informatica complex transformation iInformatica complex transformation i
Informatica complex transformation iAmit Sharma
 

Semelhante a Microsoft access VBA communication with RS232 Peripherals (20)

SH 2 - SES 1 - Stitch_Workshop_TLV.pptx
SH 2 - SES 1 - Stitch_Workshop_TLV.pptxSH 2 - SES 1 - Stitch_Workshop_TLV.pptx
SH 2 - SES 1 - Stitch_Workshop_TLV.pptx
 
Apache Calcite Tutorial - BOSS 21
Apache Calcite Tutorial - BOSS 21Apache Calcite Tutorial - BOSS 21
Apache Calcite Tutorial - BOSS 21
 
Evolutionary db development
Evolutionary db development Evolutionary db development
Evolutionary db development
 
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
SenchaCon 2016: Handle Real-World Data with Confidence - Fredric Berling
 
Full screen Web Browser support RS-232 / TCPIP peripheral (plugin)
Full screen Web Browser support RS-232 / TCPIP peripheral (plugin)Full screen Web Browser support RS-232 / TCPIP peripheral (plugin)
Full screen Web Browser support RS-232 / TCPIP peripheral (plugin)
 
20.project inventry management system
20.project inventry management system20.project inventry management system
20.project inventry management system
 
Using idoc method in lsmw
Using idoc method in lsmwUsing idoc method in lsmw
Using idoc method in lsmw
 
Prep 2-booklet-2nd-term-2016-2017
Prep 2-booklet-2nd-term-2016-2017Prep 2-booklet-2nd-term-2016-2017
Prep 2-booklet-2nd-term-2016-2017
 
MondCloud Semantic Data Hub for Insurance
MondCloud Semantic Data Hub for InsuranceMondCloud Semantic Data Hub for Insurance
MondCloud Semantic Data Hub for Insurance
 
Installing community surveys in connections 5.5
Installing community surveys in connections 5.5Installing community surveys in connections 5.5
Installing community surveys in connections 5.5
 
Nota ict form 5
Nota ict form 5Nota ict form 5
Nota ict form 5
 
MaxTECH Technical Training - Maximo Custom Audit Solution
MaxTECH Technical Training - Maximo Custom Audit SolutionMaxTECH Technical Training - Maximo Custom Audit Solution
MaxTECH Technical Training - Maximo Custom Audit Solution
 
CIS 3100 - Database Design and ImplementationScoring Rubric.docx
CIS 3100 - Database Design and ImplementationScoring Rubric.docxCIS 3100 - Database Design and ImplementationScoring Rubric.docx
CIS 3100 - Database Design and ImplementationScoring Rubric.docx
 
I doc packaging and mapping techniques.doc
I doc packaging and mapping techniques.docI doc packaging and mapping techniques.doc
I doc packaging and mapping techniques.doc
 
Automated Document Indexing with ImageRamp
Automated Document Indexing with ImageRampAutomated Document Indexing with ImageRamp
Automated Document Indexing with ImageRamp
 
Design notes
Design notesDesign notes
Design notes
 
Building Your First App with MongoDB Stitch
Building Your First App with MongoDB StitchBuilding Your First App with MongoDB Stitch
Building Your First App with MongoDB Stitch
 
Batch input session
Batch input sessionBatch input session
Batch input session
 
Product Supplier59,58,8,2.50CIS 3100 - Database Desig.docx
Product Supplier59,58,8,2.50CIS 3100 - Database Desig.docxProduct Supplier59,58,8,2.50CIS 3100 - Database Desig.docx
Product Supplier59,58,8,2.50CIS 3100 - Database Desig.docx
 
Informatica complex transformation i
Informatica complex transformation iInformatica complex transformation i
Informatica complex transformation i
 

Mais de topomax

Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...
Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...
Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...topomax
 
Serial RS232 to Keyboard wedge software
Serial RS232 to Keyboard wedge softwareSerial RS232 to Keyboard wedge software
Serial RS232 to Keyboard wedge softwaretopomax
 
Support Awid proximity reader
Support Awid proximity readerSupport Awid proximity reader
Support Awid proximity readertopomax
 
How support caller ID phone number
How support caller ID phone numberHow support caller ID phone number
How support caller ID phone numbertopomax
 
How support caller Id phone number with a modem
How support caller Id phone number with a modemHow support caller Id phone number with a modem
How support caller Id phone number with a modemtopomax
 
Bill redirect manual_fr
Bill redirect manual_frBill redirect manual_fr
Bill redirect manual_frtopomax
 
Bill redirect manual
Bill redirect manualBill redirect manual
Bill redirect manualtopomax
 
Automatic dimmer package dimensioning RS-232
Automatic dimmer package dimensioning RS-232Automatic dimmer package dimensioning RS-232
Automatic dimmer package dimensioning RS-232topomax
 
Control Relays via RS-232 / USB
Control Relays via RS-232 / USBControl Relays via RS-232 / USB
Control Relays via RS-232 / USBtopomax
 
Microsoft Excel and RS-232 peripherals protocol communication DDE
Microsoft Excel and RS-232 peripherals protocol communication DDEMicrosoft Excel and RS-232 peripherals protocol communication DDE
Microsoft Excel and RS-232 peripherals protocol communication DDEtopomax
 
iPod iPhone iPod Remote control via TCPIP
iPod iPhone iPod Remote control via TCPIPiPod iPhone iPod Remote control via TCPIP
iPod iPhone iPod Remote control via TCPIPtopomax
 
Control infrared remote controls receiver RS-232
Control infrared remote controls receiver RS-232Control infrared remote controls receiver RS-232
Control infrared remote controls receiver RS-232topomax
 
Storm Keyboard / Keypad RS-232 Wedge keyboard solution
Storm Keyboard / Keypad RS-232  Wedge keyboard solutionStorm Keyboard / Keypad RS-232  Wedge keyboard solution
Storm Keyboard / Keypad RS-232 Wedge keyboard solutiontopomax
 
Windows Virtual Keyboard modification
Windows Virtual Keyboard modificationWindows Virtual Keyboard modification
Windows Virtual Keyboard modificationtopomax
 
Bill redirect multiply
Bill redirect multiplyBill redirect multiply
Bill redirect multiplytopomax
 
Digital Calipers Software Mitutoyo / Logiciel pour Pied à coulisse Mitutoyo (...
Digital Calipers Software Mitutoyo / Logiciel pour Pied à coulisse Mitutoyo (...Digital Calipers Software Mitutoyo / Logiciel pour Pied à coulisse Mitutoyo (...
Digital Calipers Software Mitutoyo / Logiciel pour Pied à coulisse Mitutoyo (...topomax
 
RS232 USB Balance and Scale Software
RS232 USB Balance and Scale SoftwareRS232 USB Balance and Scale Software
RS232 USB Balance and Scale Softwaretopomax
 

Mais de topomax (17)

Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...
Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...
Windows Telnet Server for your mobile devices, RF Terminal data acquisiiton B...
 
Serial RS232 to Keyboard wedge software
Serial RS232 to Keyboard wedge softwareSerial RS232 to Keyboard wedge software
Serial RS232 to Keyboard wedge software
 
Support Awid proximity reader
Support Awid proximity readerSupport Awid proximity reader
Support Awid proximity reader
 
How support caller ID phone number
How support caller ID phone numberHow support caller ID phone number
How support caller ID phone number
 
How support caller Id phone number with a modem
How support caller Id phone number with a modemHow support caller Id phone number with a modem
How support caller Id phone number with a modem
 
Bill redirect manual_fr
Bill redirect manual_frBill redirect manual_fr
Bill redirect manual_fr
 
Bill redirect manual
Bill redirect manualBill redirect manual
Bill redirect manual
 
Automatic dimmer package dimensioning RS-232
Automatic dimmer package dimensioning RS-232Automatic dimmer package dimensioning RS-232
Automatic dimmer package dimensioning RS-232
 
Control Relays via RS-232 / USB
Control Relays via RS-232 / USBControl Relays via RS-232 / USB
Control Relays via RS-232 / USB
 
Microsoft Excel and RS-232 peripherals protocol communication DDE
Microsoft Excel and RS-232 peripherals protocol communication DDEMicrosoft Excel and RS-232 peripherals protocol communication DDE
Microsoft Excel and RS-232 peripherals protocol communication DDE
 
iPod iPhone iPod Remote control via TCPIP
iPod iPhone iPod Remote control via TCPIPiPod iPhone iPod Remote control via TCPIP
iPod iPhone iPod Remote control via TCPIP
 
Control infrared remote controls receiver RS-232
Control infrared remote controls receiver RS-232Control infrared remote controls receiver RS-232
Control infrared remote controls receiver RS-232
 
Storm Keyboard / Keypad RS-232 Wedge keyboard solution
Storm Keyboard / Keypad RS-232  Wedge keyboard solutionStorm Keyboard / Keypad RS-232  Wedge keyboard solution
Storm Keyboard / Keypad RS-232 Wedge keyboard solution
 
Windows Virtual Keyboard modification
Windows Virtual Keyboard modificationWindows Virtual Keyboard modification
Windows Virtual Keyboard modification
 
Bill redirect multiply
Bill redirect multiplyBill redirect multiply
Bill redirect multiply
 
Digital Calipers Software Mitutoyo / Logiciel pour Pied à coulisse Mitutoyo (...
Digital Calipers Software Mitutoyo / Logiciel pour Pied à coulisse Mitutoyo (...Digital Calipers Software Mitutoyo / Logiciel pour Pied à coulisse Mitutoyo (...
Digital Calipers Software Mitutoyo / Logiciel pour Pied à coulisse Mitutoyo (...
 
RS232 USB Balance and Scale Software
RS232 USB Balance and Scale SoftwareRS232 USB Balance and Scale Software
RS232 USB Balance and Scale Software
 

Microsoft access VBA communication with RS232 Peripherals

  • 1. Bill Redirect Send data directly in your Microsoft Access Documentation: 18/11/2008 Use this documentation with the product : Bill Redirect 5.0J and more Software configuration and integration service It's free, fast, and efficient ! Submit your case to info@billproduction.com and receive a customized answer ! Our Internet site: http://www.billproduction.com/ Email: info@BillProduction.com
  • 2. This documentation demonstrate how Bill Redirect can sent Serial Scanner (Barcode, Proximity, scale… ) Reader numbers directly in Microsoft Access
  • 3. Step #1 Download and install Bill Redirect software http://www.billproduction.com/Bill_COMtoKB.ZIP Step #2 Disable all except the Serial Port and File section Set the Serial Port switch to: OFF Set the File switch to: Write
  • 4. Step #3 Click on button: Configuration Enter the Serial Port Number where your Peripheral is connected Chose the Serial Port Configuration corresponding to your peripheral If the data sent by your peripheral ends with a [ENTER], then enter 13 in the optional field otherwise leave it blank
  • 5. Step #4 Click on button: Configuration In the field “File:” enter: C:BillProduction.cfgDATETIMESEQ.OUT Click on button: OK Click on button: Save Configuration
  • 6. Step #5 Microsoft Access Configuration You can download this example via this link: (MS Access 2003 and more) http://www.billproduction.com/MSAccess01.zip The following demonstrates how you can receive Bill Redirect data in Microsoft Access via a timer. 1. Create a sample database Sample.mdb 2. Create a table with 3 fields: Field Name Data Type ID_Barcode Text ID_Date Date/Time ID_Time Date/Time Save this Table to: BillRedirect * Important: Use no Primary Key ! 3. Create a new form and open it in “Design view” 4. Add on this form 3 Text Box: Each Text Box Properties Form example Name Data / Control Source TextBoxBarcode ID_Barcode TextBoxDate ID_Date TextBoxTime ID_Time 5. Set Form properties Data / Source: BillRedirect
  • 7. Step #6 6. Insert the following source code: Private Sub Form_Load() Me.TimerInterval = 100 End Sub Public Sub Form_Timer() Call RX_BillRedirect End Sub Public Sub RX_BillRedirect() On Error GoTo BillRedEnd Const TheDirectory = "c:BillProduction.cfg" Dim TheFile As String Dim TheData As String TheFile = Dir(TheDirectory & "*.OUT") If TheFile <> "" Then Open TheDirectory & TheFile For Input As #1 Line Input #1, TheData 'The data is in the variable: TheData '...HERE... ADD COMMANDS TO APPEND DATA TO YOUR TABLE '----[Example]-------------------------------------------- DoCmd.GoToRecord , , acNewRec TextBoxBarcode.SetFocus TextBoxBarcode.Text = TheData TextBoxDate.SetFocus TextBoxDate.Text = Date TextBoxTime.SetFocus TextBoxTime.Text = Time '----[Example]-------------------------------------------- Close #1 Kill TheDirectory & TheFile End If Exit Sub BillRedEnd: Debug.Print Err.Description Close #1 End Sub 7. Close and save the form 8. Open the form in mode “Form View” At this step if your configuration is correct you can see the data received by your serial peripheral appear in Microsoft Access For more information, consult the product manual: http://www.billproduction.com/Bill_Redirect_Manual.pdf Software configuration and integration service It's free, fast, and efficient ! Submit your case to info@billproduction.com and receive a customized answer !