Code Examples
  Home arrow Code Examples arrow Page 6 - Creating an Ordering System Using EVB
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
CODE EXAMPLES

Creating an Ordering System Using EVB
By: Vishal Rajpara
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 23
    2004-08-18

    Table of Contents:
  • Creating an Ordering System Using EVB
  • Application Design
  • Module 2 Pocket PC Application Desktop Utility
  • Screen 2, the Main Screen
  • Screen 3, the Customer Information
  • Screen 4, the User Information
  • Application Testing and Deployment

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Creating an Ordering System Using EVB - Screen 4, the User Information


    (Page 6 of 7 )

    Screen 4 (User Information)

    Creating an Ordering Application with EVB

    Code:

    Option Explicit
    Dim ssql  As String
    Dim srs As Recordset
    Public UserName As String


    Private Sub btnClose_Click()
        frmAction.Show
    End Sub

    Private Sub btnSave_Click()
    On Error GoTo 0
    Dim Lid As Integer
    If Trim(UserName) = "" Then
        MsgBox "Unable to save." & "You are logged in correctly", vbCritical, "Medisoft"
        Exit Sub
    End If
        btnSave.Enabled = False
        lblTid.Caption = "Saving........."
        Set srs = CreateObject("ADOCE.RECORDSET.3.0")
        ssql = "select T_id from Patient_Tran order by T_id desc"
        srs.Open ssql
        If Not srs.EOF Then
            Lid = srs.Fields("T_id").Value + 1
        Else
            Lid = 1
        End If
       
        Set srs = CreateObject("ADOCE.RECORDSET.3.0")
        ssql = "insert into Patient_Tran(T_id,T_Date,PName,T_Delivery,T_Collection,Qty,TankType,UserName) values (" _
                 & CStr(Lid) & ",#" & txtDate.Text & "#,'" & Trim(cmbPatient.Text) & "'," & chkDelivery.Value & "," _
                 & chkCollection.Value & "," & txtQty.Text & ",'" & txtTankType.Text & "','" & UserName & "'" _
                 & ")"
                
        srs.Open ssql
        lblTid.Caption = Lid
        btnSave.Enabled = True
        Set srs = Nothing
       
    End Sub

    Private Sub Form_Activate()
        Screen.MousePointer = vbNormal
        btnSave.Enabled = True

    End Sub

    Private Sub Form_GotFocus()
        Screen.MousePointer = vbNormal
        btnSave.Enabled = True

    End Sub

    Private Sub Form_Load()
    On Error GoTo 0
        Call LoadData
        Screen.MousePointer = vbNormal
        btnSave.Enabled = True
    End Sub

    Private Sub LoadData()
       
        Set srs = CreateObject("ADOCE.RECORDSET.3.0")
        ssql = "select PName from Patient_Master"
        srs.Open ssql
       
       
        Do While Not srs.EOF
            cmbPatient.AddItem Trim(srs.Fields("PName").Value)
            srs.MoveNext
        Loop
        srs.Close
        Set srs = Nothing
    End Sub


    Private Sub frTran_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)

    End Sub

    More Code Examples Articles
    More By Vishal Rajpara


       · u all suck
       · I was looking for a tutorial about creating applications for pocket pc. you really...
       · madarchod ...ask ur mom...and yes ur a failure that happened in a taxi cab..god rest...
     

    CODE EXAMPLES ARTICLES

    - Handling Animations and Bitmaps Using GDI+ f...
    - Download a Web Page using the WebClient
    - Creating a Chart using Data from a Database ...
    - The Basics of Charting with the MS Chart Con...
    - Searching Body Text with textRange: Enter th...
    - Searching Body Text with textRange: Building...
    - Searching Body Text with textRange, part 1: ...
    - First Steps in Programming
    - Programming in C
    - Quick Introduction to ASF,ASX, and Networkin...
    - SatView: Pointer Perfect, Part 2: Constructi...
    - SatView: Pointer Perfect, Part 1
    - Style Case Studies: Construction Unions
    - Creating an Engine for Games for Windows
    - Style Case Studies: Generic Callbacks

     
    Best Practices for Windows Vista Migration Presentation
    Dell and Microsoft recently held a series of face-to-face seminars entitled, &qu....

     
    Creating a Culture for Code Reuse
    If you oversee development teams you know that like it or not proprietary and ex....

     
    Keys to Web Application Acceleration: Advances in Delivery Systems
    Accelerate Web apps by up to 5x. Ensure significantly faster access to the Web a....

     
    Optimizing Application Monitoring
    Tired of finding out from your customers that you're offline? This white paper e....

     
    Solaris to Solaris Migration -- Migrating applications from Sun SPARC to Dell PowerEdge R900
    This comprehensive Migration Guide reviews the approach that Principled Technolo....

     




    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
    Stay green...Green IT