Results 1 to 9 of 9

Thread: [RESOLVED] Please direct in right direction...

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2008
    Posts
    790

    Resolved [RESOLVED] Please direct in right direction...

    My next project is to have a touch screen kiosk set up for my family's small business.

    I would like to have a way that users can click on new sales offers (coupons) that are updated from a remote location. That way I do not have to be at the kiosk everytime a sale is on! It would just update from my home computer.

    Any help or thoughts on how to get started?

    I am using VB6 with Vista.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Please direct in right direction...

    Well, you aren't going to be able to alter the screen, but you can alter what is displayed on the screen by maintaining everything within a back end database that you can update from the comfort of your home.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2008
    Posts
    790

    Re: Please direct in right direction...

    That's what I was thinking... use Microsoft Access or Excel and store information there. I would rather use Excel, unless Access is the best way to go.

    How can I display it in a coupon-like manner? How can the file automatically be sent to the kiosk to be updated?

    Thanks!

  4. #4
    Lively Member
    Join Date
    Jul 2007
    Posts
    98

    Re: Please direct in right direction...

    avoid excel as a database replacement. Although it can be used for data storing
    it is not a database, and you will end up with some ugly data access\storage problems.

    What you need is a database (MS access will do the trick).
    The update can be solved with a TCP client\server application that
    manages the data update.

  5. #5
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: Please direct in right direction...

    Are you going to be dealing with tens of thousands of coupons?

    I didn't think so, so why bother using a database with Access and mess about with all the setting up when you can create your own simple textfile with the information you require. You don't even need to have the kiosk directly connected to you, it could get the textfile from a location online and you upload it there (or FTP it over to the kiosk if you run a prog to do that...personally I suggest HFS which is actually a HTTP file server with uploading capabilities).

    You don't need to use a sledgehammer to crack open a walnut :-P
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  6. #6
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: Please direct in right direction...

    Quote Originally Posted by chris.cavage
    That's what I was thinking... use Microsoft Access or Excel and store information there. I would rather use Excel, unless Access is the best way to go.

    How can I display it in a coupon-like manner? How can the file automatically be sent to the kiosk to be updated?

    Thanks!
    Before you worry about steps B, C, D... Step A, what are the capabilities of the kiosk? If it doesn't have any means of establishing a remote connection then you would have to go to the kiosk and update it (forget about doing so from the comfort of your home). If that was the case then Step B would be how to make it more efficient and less time consuming on your part.

  7. #7
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Please direct in right direction...

    Quote Originally Posted by smUX
    ... so why bother using a database with Access and mess about with all the setting up ...
    Not much to it really, especially for a simple case.
    Code:
    Option Explicit
    '
    'Create new MDB, load a CSV file as a single table from data.txt
    'in subfolder CSVData.
    '
    ' -or-
    '
    'Reload new CSV file data.
    '
    
    Private Const CONNSTRING As String = _
        "Provider=Microsoft.Jet.OLEDB.4.0;" _
      & "Jet OLEDB:Engine Type=5;Data Source='sample.mdb'"
    
    Private Sub DBImport(ByVal Conn As ADODB.Connection)
        Conn.Execute "SELECT * INTO [Data] FROM " _
                   & "[Text;Database=CSVData;HDR=Yes].[data.txt]", , _
                     adCmdText
    End Sub
    
    Private Sub DBCreate()
        Dim catDB As Object 'As ADOX.Catalog.
        
        Set catDB = CreateObject("ADOX.Catalog")
        With catDB
            .Create CONNSTRING
            DBImport .ActiveConnection
            .ActiveConnection.Close
        End With
        
        lblStatus.Caption = "Database created, data imported."
    End Sub
    
    Private Sub DBUpdate()
        Dim connDB As ADODB.Connection
        
        Set connDB = New ADODB.Connection
        With connDB
            .Open CONNSTRING
            .Execute "DROP TABLE [Data]", , adCmdText
            DBImport connDB
            .Close
        End With
        
        lblStatus.Caption = "Old data dropped, new data imported."
    End Sub
    
    Private Sub cmdCreate_Click()
        DBCreate
    End Sub
    
    Private Sub cmdUpdate_Click()
        DBUpdate
    End Sub

  8. #8
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: Please direct in right direction...

    Dil, my point is Access (although scalable) is designed for large-scale databases...the more efficient method if you only need a a few bits of data would be loading from a text file.

    It's the old adage, KISS...Keep It Simple, Stupid...the simpler it is, the easier it is to find bugs if they rear their head
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2008
    Posts
    790

    Re: Please direct in right direction...

    Hi..

    The remote kiosk will have internet access, so I will try to use another database system.

    I am using MySQL, I decided, and trying to set up ADO to work with the kiosk.

    I am also gathering kiosk users information in MySql, so I can figure something out I am sure.

    I will try not to rely on Excel too much. I didn't think that was a good idea.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width