Professional Documents
Culture Documents
Ritu Project in VB
Ritu Project in VB
Unload Me
Form2.Show
End Sub
LOGIN FORM
Private Sub Command1_Click()
Unload Me
frmprod.Show
Else
End If
End Sub
End
End Sub
MDI FORM
Public state As Boolean
Dim rs As ADODB.Recordset
Dim f As Variant
'datapath = "c:\sis\victor.acs"
'Me.Top = 300
'Me.Left = 300
' Genie.Show
'
End Sub
Modvariables.recordsetproperty rs
rs.Close
rs.Open "SELECT * FROM accesion"
rs.Close
rs.Close
rs.Close
rs.Close
rs.Close
End Sub
'cd.PrinterName = Printer.DeviceName
'cd.PrinterPort = Printer.Port
'cd.PrinterDriver = Printer.DriverName
'
'Modvariables.connect
'End Sub
End Sub
frmfeewiz.Show
End Sub
frmauthr.Show
''frmmainmenu.Enabled = False
End Sub
End Sub
bookaenq.Show
''frmmainmenu.Enabled = False
End Sub
frmcatlg.Show
''frmmainmenu.Enabled = False
End Sub
frmbebt.Show
''frmmainmenu.Enabled = False
End Sub
''frmmainmenu.Enabled = False
End Sub
mjenquiry.Show
''frmmainmenu.Enabled = False
End Sub
'MDIguru.Hide
Unload Me
End Sub
frmpndenq.Show
'''frmmainmenu.Enabled = False
End Sub
priodenq.Show
''frmmainmenu.Enabled = False
End Sub
frmpubmas.Show
''frmmainmenu.Enabled = False
End Sub
frmreceivesm.Show
''frmmainmenu.Enabled = False
End Sub
frmreceive.Show
''frmmainmenu.Enabled = False
End Sub
frmsenq.Show
''frmmainmenu.Enabled = False
End Sub
frmissuesm.Show
''frmmainmenu.Enabled = False
End Sub
frmissue.Show
''frmmainmenu.Enabled = False
End Sub
End Sub
frmsupmas.Show
''frmmainmenu.Enabled = False
End Sub
frmahead.Show
''frmmainmenu.Enabled = False
End Sub
frmvfees.Show
''frmmainmenu.Enabled = False
End Sub
frmacmas.Show
''frmmainmenu.Enabled = False
End Sub
frmaccwiz.Show
End Sub
Private Sub mnu2ndopr_Click()
'frmprod2nd.Show
frmprod2nd1.Show
End Sub
frmoprmas.Show
End Sub
frmadmission.Show
End Sub
detail
frmaddetail.Show
End Sub
End Sub
Private Sub mnuar_Click()
cd.connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\gurukul\data\gurukul.mdb;Persist Security Info=False;"
cd.DiscardSavedData = True
cd.ReportFileName = "c:\gurukul\reports\accessionreg.rpt"
cd.PrinterSelect
cd.Action = 1
End Sub
Modvariables.setname
cd.connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\gurukul\data\gurukul.mdb;Persist Security Info=False;"
cd.DiscardSavedData = True
cd.ReportFileName = "c:\gurukul\reports\bloodgroup.rpt"
cd.PrinterSelect
cd.Action = 1
End Sub
End Sub
Dim calc
calc = Shell("c:\sis/calc.exe", 1)
End Sub
frmadmres.Show
End Sub
frmbrequ.Show
End Sub
concise
frmcategorywise.Show
End Sub
frmcategorywise.Show
End Sub
frmcharacter.Show
End Sub
concise
frmclasswise.Show
End Sub
detail
frmclasswise.Show
End Sub
Modvariables.setname
cd.connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\gurukul\data\gurukul.mdb;Persist Security Info=False;"
cd.DiscardSavedData = True
cd.ReportFileName = "c:\gurukul\reports\progressreport.rpt"
cd.PrinterSelect
cd.Action = 1
End Sub
frmclmas.Show
''frmmainmenu.Enabled = False
End Sub
frmsft_a.Show
End Sub
frmdis_a.Show
End Sub
End Sub
cd.connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\gurukul\data\gurukul.mdb;Persist Security Info=False;"
cd.DiscardSavedData = True
cd.ReportFileName = "c:\gurukul\reports\psalenot.rpt"
cd.PrinterSelect
cd.Action = 1
End Sub
frmhnenq.Show
''frmmainmenu.Enabled = False
End Sub
frmgreeting.Show
End Sub
Private Sub mnudsp_Click()
frmeTSP.Show
End Sub
frmestat.Show
End Sub
frmerout.Show
End Sub
frmempmas.Show
End Sub
frmsale.Show
''frmmainmenu.Enabled = False
End Sub
Private Sub mnuenttest_Click()
frmenter.Show
''frmmainmenu.Enabled = False
End Sub
frmexmas.Show
''frmmainmenu.Enabled = False
End Sub
frmsft_d.Show
End Sub
frmdis_d.Show
End Sub
frmsft_e.Show
End Sub
frmdis_e.Show
End Sub
Unload Me
End Sub
frmitemmas.Show
End Sub
frmrptreceipt.Show
End Sub
frmgsal.Show
End Sub
Private Sub mnuhchart_Click()
frmhldtl.Show
End Sub
frmphysic.Show
End Sub
frmitemmas.Show
End Sub
frmmissue.Show
End Sub
prdcldtl.Show
End Sub
End Sub
mrecsm.Show
'''frmmainmenu.Show
End Sub
misstosm.Show
''frmmainmenu.Enabled = False
End Sub
frmmarksheet.Show
End Sub
Modvariables.setname
cd.connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\gurukul\data\gurukul.mdb;Persist Security Info=False;"
cd.DiscardSavedData = True
cd.ReportFileName = "c:\gurukul\reports\muster.rpt"
cd.PrinterSelect
cd.Action = 1
End Sub
frmnewad.Show
End Sub
frmnews.Show
End Sub
frmesveh.Show
End Sub
''frmmainmenu.Enabled = False
End Sub
frmpayslip.Show
End Sub
frmrcptnow.Show
'frmpend.Show
End Sub
frmprd.Show
'''frmmainmenu.Enabled = False
End Sub
frmexres.Show
''frmmainmenu.Enabled = False
End Sub
frmedit.Show
''frmmainmenu.Enabled = False
frmload = "frprosrec"
editme = True
End Sub
Modvariables.setname
cd.connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\gurukul\data\gurukul.mdb;Persist Security Info=False;"
cd.DiscardSavedData = True
cd.PageZoom (3)
cd.ReportFileName = "c:\gurukul\reports\rcpnodtl.rpt"
cd.Action = 1
End Sub
concise
frmregionwise.Show
End Sub
detail
frmregionwise.Show
End Sub
frmesdbc.Show
End Sub
frmroute.Show
End Sub
Private Sub mnurooms_Click()
frmhotra.Show
''frmmainmenu.Enabled = False
End Sub
frmchrpt.Show
End Sub
frmemptrans.Show
End Sub
frmscmas.Show
''frmmainmenu.Enabled = False
End Sub
frmeFNR.Show
End Sub
Private Sub mnushsn_Click()
frmsnenq.Show
''frmmainmenu.Enabled = False
End Sub
FRMEBHTI.Show
''frmmainmenu.Enabled = False
End Sub
cd.connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\gurukul\data\gurukul.mdb;Persist Security Info=False;"
cd.DiscardSavedData = True
cd.ReportFileName = "c:\gurukul\reports\studentledger.rpt"
cd.PrinterSelect
cd.Action = 1
End Sub
End Sub
frmslrpt.Show
End Sub
cd.connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\gurukul\data\gurukul.mdb;Persist Security Info=False;"
cd.DiscardSavedData = True
cd.ReportFileName = "c:\gurukul\reports\staffledger.rpt"
cd.PrinterSelect
cd.Action = 1
End Sub
frmplace.Show
End Sub
''frmmainmenu.Enabled = False
End Sub
frmsbmas.Show
''frmmainmenu.Enabled = False
End Sub
state = True
End Sub
state = False
End Sub
frmvaenq.Show
''frmmainmenu.Enabled = False
End Sub
Private Sub mnuswiz_Click()
frmwizard.Show
End Sub
Modvariables.setname
cd.DiscardSavedData = True
cd.ReportFileName = "c:\gurukul\reports\transcheck.rpt"
cd.PrinterSelect
cd.Action = 1
End Sub
frmevehi.Show
End Sub
Private Sub mnuvmas_Click()
frmvehicle.Show
End Sub
Dim iwlot2
iwlot2 = Shell("c:\e-apps\reports\lotnowiseprod2opr.exe", 1)
End Sub
Dim iwdwpr2
iwdwpr2 = Shell("c:\e-apps\reports\itemwiseprod2opr.exe", 1)
End Sub
Dim mwise2
mwise2 = Shell("c:\e-apps\reports\machinewiseprod2opr.exe", 1)
End Sub
oprprod2opr = Shell("c:\e-apps\reports\operationwiseprod2opr.exe", 1)
End Sub
Dim oprprod1
oprprod1 = Shell("c:\e-apps\reports\operatorwiseprod2opr.exe", 1)
End Sub
frmproduction1.Show
End Sub
Dim iwlot1
iwlot1 = Shell("c:\e-apps\reports\lotnowiseprod1opr.exe", 1)
End Sub
Dim iwdwpr1
iwdwpr1 = Shell("c:\e-apps\reports\itemwiseprod1opr.exe", 1)
End Sub
Dim mwise1
mwise1 = Shell("c:\e-apps\reports\machinewiseprod1opr.exe", 1)
End Sub
Dim operationprod1
operationprod1 = Shell("c:\e-apps\reports\operationwiseprod1opr.exe", 1)
End Sub
Dim opr1prod
opr1prod = Shell("c:\e-apps\reports\opreratorwiseprod1opr.exe", 1)
End Sub
frmoaschedule_a.Show
End Sub
Private Sub mnuistopr1_Click()
'frmrmmachinejob.Show
End Sub
Dim itemmas
itemmas = Shell("c:\e-apps\reports\itemmas.exe", 1)
End Sub
Dim machinemas
machinemas = Shell("c:\e-apps\reports\machinemas.exe", 1)
End Sub
frmsft_m.Show
End Sub
frmdis_m.Show
End Sub
Private Sub mnuopr1_Click()
Dim oprmas
oprmas = Shell("c:\e-apps\reports\oprmas.exe", 1)
End Sub
Dim prodjob2
prodjob2 = Shell("c:\e-apps\reports\productionjobiind.exe", 1)
End Sub
Dim prodjob1
prodjob1 = Shell("c:\e-apps\reports\productionjobcard.exe", 1)
End Sub
frmproduction2.Show
End Sub
End Sub
Dim rawmprod1
rawmprod1 = Shell("c:\e-apps\reports\rawmaterialwiseprod1opr.exe", 1)
End Sub
Case "k1":
frmrmmachineissue.Show
Case "k2":
frmprod2nd.Show
Case "k3":
frmproduction2.Show
Case "k4":
frmproduction1.Show
Case "k5":
Unload Me
frmmain.Show
End Select
End Sub
Dim rs As ADODB.Recordset
If vel = 13 Then
End If
End Function
cmdadd.Caption = "&Save"
cmddelete.Caption = "Cancel"
cmdedit.Enabled = False
cmdexit.Enabled = True
enabledtext
txtitemcode.SetFocus
Else
Call checkcode
Exit Sub
Else
editrecord
Else
saving
cmdedit.Enabled = True
End If
duplicate = False
Exit Sub
Else
cmdadd.Caption = "Add"
cmdexit.Enabled = True
cmddelete.Caption = "Delete"
emptytext
disabledtext
End If
End If
End If
End Sub
txtitemcode.SetFocus
Exit Sub
End If
txtitemname.SetFocus
Exit Sub
End If
txtuom.SetFocus
Exit Sub
End If
check = True
End Sub
cmdadd.Caption = "Add"
cmddelete.Caption = "Delete"
cmdedit.Enabled = True
emptytext
cmdexit.Enabled = True
cmdadd.Enabled = True
editfrm = False
Else
delete = True
txtitemname.Enabled = True
txtitemname.SetFocus
End If
End Sub
Call enabledtext
txtitemcode.Enabled = True
cmddelete.Caption = "Cancel"
cmdexit.Enabled = False
cmdadd.Caption = "&Save"
editfrm = True
delete = False
txtitemname.Enabled = True
txtitemname.SetFocus
Call listitemname
lstitemname.Visible = True
End If
End Sub
Unload Me
End Sub
cmdadd.SetFocus
End Sub
emptytext
disabledtext
check = False
Modvariables.frmload = "frmitemmas"
Modvariables.connect
duplicate = False
itemparam = False
End Sub
Modvariables.disconnect
Unload Me
End Sub
txtitemcode.BackColor = &H0&
txtitemcode.ForeColor = &H80000005
txtbox = "txtitemcode"
End Sub
txtitemcode.BackColor = &H80FFFF
Modvariables.recordsetproperty rs
rs.Open "select itemcode from itemmas where itemcode='" & Trim(txtitemcode.Text) & "'"
txtitemcode.Text = ""
txtitemcode.SetFocus
End If
Set rs = Nothing
End If
End Sub
txtitemname.BackColor = &H0&
txtitemname.ForeColor = &H80000005
txtbox = "txtitemname"
item1txt = True
End Sub
clear1 = False
Exit Sub
Else
str1 = Trim(txtitemname.Text)
Call listitemname
lstitemname.Visible = True
str1 = ""
End If
End If
End If
End Sub
txtitemname.ForeColor = &H0&
txtitemname.BackColor = &H80FFFF
If (item1lst) Then
lstitemname.Visible = False
End If
item1txt = False
End Sub
txtqty.BackColor = &H0&
txtqty.ForeColor = &H80000005
txtbox = "txtqty"
End Sub
enterfun (KeyAscii)
End Sub
txtqty.ForeColor = &H0&
txtqty.BackColor = &H80FFFF
End Sub
txtrate.BackColor = &H0&
txtrate.ForeColor = &H80000005
txtbox = "txtrate"
End Sub
enterfun (KeyAscii)
End Sub
txtrate.ForeColor = &H0&
txtrate.BackColor = &H80FFFF
End Sub
str = txtuom.Text
txtuom.Text = ""
txtuom.SetFocus
Else
Exit Sub
End If
End Sub
Private Sub txtitemcode_KeyPress(KeyAscii As Integer)
enterfun (KeyAscii)
KeyAscii = KeyAscii - 32
End If
End Sub
enterfun (KeyAscii)
KeyAscii = KeyAscii - 32
End If
End Sub
Dim i As Integer
Modvariables.recordsetproperty rs
.AddNew
.Fields("itemcode") = txtitemcode.Text
.Fields("itemname") = txtitemname.Text
.Fields("uom") = txtuom.Text
.Fields("itemrate") = Val(txtrate.Text)
.Fields("qty") = Val(txtqty.Text)
rs.Update
End With
Modvariables.disconnectrecordset rs
errorhandler:
txtitemcode.SetFocus
txtitemcode.SelStart = 0
txtitemcode.SelLength = Len(txtitemcode.Text)
duplicate = True
Exit Sub
End If
itemparam = False
check = False
End Sub
vel = vel - 32
bold = vel
Else
bold = vel
End If
End Function
txtitemcode.Enabled = True
txtitemname.Enabled = True
txtuom.Enabled = True
txtrate.Enabled = True
End Sub
txtitemname.Enabled = False
txtuom.Enabled = False
txtrate.Enabled = False
txtqty.Enabled = False
End Sub
num = vel
End If
End Function
txtitemcode.Text = ""
txtitemname.Text = ""
txtuom.Text = ""
txtrate.Text = ""
txtqty.Text = ""
End Sub
txtuom.BackColor = &H0&
txtuom.ForeColor = &H80000005
txtbox = "txtuom"
End Sub
enterfun (KeyAscii)
KeyAscii = bold(KeyAscii)
End Sub
Dim i As Integer
Modvariables.recordsetproperty rs1
rs1.Open "select * from itemmas where itemcode='" & txtitemcode.Text & "'"
rs1.Fields("itemcode") = txtitemcode.Text
rs1.Fields("itemname") = Trim(txtitemname.Text)
rs1.Fields("uom") = Trim(txtuom.Text)
rs1.Fields("itemrate") = Val(txtrate.Text)
rs1.Fields("qty") = Val(txtqty.Text)
rs1.Update
rs1.Close
lstitemname.Visible = False
editfrm = False
End Sub
Private Sub loadingfrm()
Dim i As Integer
Modvariables.recordsetproperty rs
rs.Open "select * from itemmas where itemcode= '" & txtitemcode.Text & "'"
If rs.RecordCount = 0 Then
Exit Sub
Else
txtitemcode.Text = Trim(rs.Fields("itemcode"))
txtitemname.Text = Trim(rs.Fields("itemname"))
txtuom.Text = Trim(rs.Fields("uom"))
txtrate.Text = Trim(rs.Fields("itemrate"))
txtqty.Text = Trim(rs.Fields("qty"))
Modvariables.disconnectrecordset rs
End If
db.Execute "delete from itemmas where itemcode='" & txtitemcode.Text & " '"
emptytext
lstitemname.Visible = False
cmdadd.SetFocus
Else
emptytext
lstitemname.Visible = False
cmdadd.SetFocus
End If
End If
End Sub
txtuom.ForeColor = &H0&
txtuom.BackColor = &H80FFFF
End Sub
txtitemname.Text = lstitemname.List(lstitemname.ListIndex)
txtitemcode.Text = lstitemcode.List(lstitemname.ListIndex)
lstitemname.Visible = False
txtitemname.SetFocus
Exit Sub
End Sub
item1lst = True
End Sub
txtitemname.Text = lstitemname.List(lstitemname.ListIndex)
txtitemcode.Text = lstitemcode.List(lstitemname.ListIndex)
lstitemname.Visible = False
txtitemname.SetFocus
End If
If KeyCode = 27 Then
txtitemname.Text = ""
lstitemname.Visible = False
txtitemname.SetFocus
End If
txtitemname.Text = lstitemname.List(lstitemname.ListIndex + 1)
txtitemcode.Text = lstitemcode.List(lstitemname.ListIndex + 1)
End If
End Sub
If KeyAscii = 13 Then
txtitemname.Text = lstitemname.List(lstitemname.ListIndex)
txtitemcode.Text = lstitemcode.List(lstitemname.ListIndex)
lstitemname.Visible = False
End If
End Sub
txtitemname.Text = lstitemname.List(lstitemname.ListIndex)
txtitemcode.Text = lstitemcode.List(lstitemname.ListIndex)
lstitemname.Visible = False
txtitemname.SetFocus
End If
If KeyCode = 27 Then
txtitemname.Text = ""
lstitemname.Visible = False
txtitemname.SetFocus
End If
txtitemname.Text = lstitemname.List(lstitemname.ListIndex)
txtitemcode.Text = lstitemcode.List(lstitemname.ListIndex)
End If
End Sub
txtitemname.ForeColor = &H0&
txtitemname.BackColor = &H80FFFF
lstitemname.Visible = False
End If
item1lst = False
'lbllistname.Caption = ""
End Sub
lstitemname.SetFocus
End If
If KeyCode = 13 Then
txtitemname.SetFocus
Else
txtuom.SetFocus
Else
cmddelete.SetFocus
End If
End If
End If
End If
End Sub
Modvariables.recordsetproperty rs1
str = Trim(txtitemname.Text)
rs1.Open "select itemcode,itemname from itemmas where itemname " & " like '" & str & "%" &
"'"
If rs1.RecordCount = 0 Then
lstitemname.clear
lstitemcode.clear
Else
lstitemname.clear
lstitemcode.clear
For k = 1 To rs1.RecordCount
lstitemcode.AddItem Trim(rs1.Fields("itemcode"))
lstitemname.AddItem Trim(rs1.Fields("itemname"))
rs1.MoveNext
Next
End If
Modvariables.disconnectrecordset rs1
End Sub
MACHINE MASTER FORM
Option Explicit
Dim rs As ADODB.Recordset
If vel = 13 Then
End If
End Function
cmdadd.Caption = "&Save"
cmddelete.Caption = "Cancel"
cmdedit.Enabled = False
cmdexit.Enabled = True
enabledtext
txtitemcode.SetFocus
Else
Call checkcode
Exit Sub
Else
editrecord
Else
saving
cmdedit.Enabled = True
End If
duplicate = False
Exit Sub
Else
cmdadd.Caption = "Add"
cmdexit.Enabled = True
cmddelete.Caption = "Delete"
emptytext
disabledtext
End If
End If
End If
End Sub
txtitemcode.SetFocus
Exit Sub
End If
txtitemname.SetFocus
Exit Sub
End If
txtuom.SetFocus
Exit Sub
End If
check = True
End Sub
cmdadd.Caption = "Add"
cmddelete.Caption = "Delete"
cmdedit.Enabled = True
emptytext
cmdexit.Enabled = True
cmdadd.Enabled = True
editfrm = False
Else
delete = True
txtitemname.Enabled = True
txtitemname.SetFocus
End If
End Sub
Call enabledtext
txtitemcode.Enabled = True
cmddelete.Caption = "Cancel"
cmdexit.Enabled = False
cmdadd.Caption = "&Save"
editfrm = True
delete = False
txtitemname.Enabled = True
txtitemname.SetFocus
Call listitemname
lstitemname.Visible = True
End If
End Sub
Unload Me
End Sub
cmdadd.SetFocus
End Sub
emptytext
disabledtext
check = False
Modvariables.frmload = "frmitemmas"
Modvariables.connect
duplicate = False
itemparam = False
End Sub
Modvariables.disconnect
Unload Me
End Sub
txtitemcode.BackColor = &H0&
txtitemcode.ForeColor = &H80000005
txtbox = "txtitemcode"
End Sub
txtitemcode.BackColor = &H80FFFF
Modvariables.recordsetproperty rs
rs.Open "select itemcode from itemmas where itemcode='" & Trim(txtitemcode.Text) & "'"
txtitemcode.Text = ""
txtitemcode.SetFocus
End If
Set rs = Nothing
End If
End Sub
txtitemname.BackColor = &H0&
txtitemname.ForeColor = &H80000005
txtbox = "txtitemname"
item1txt = True
End Sub
clear1 = False
Exit Sub
Else
str1 = Trim(txtitemname.Text)
Call listitemname
lstitemname.Visible = True
str1 = ""
End If
End If
End If
End Sub
txtitemname.ForeColor = &H0&
txtitemname.BackColor = &H80FFFF
If (item1lst) Then
lstitemname.Visible = False
End If
item1txt = False
End Sub
txtqty.BackColor = &H0&
txtqty.ForeColor = &H80000005
txtbox = "txtqty"
End Sub
enterfun (KeyAscii)
End Sub
txtqty.ForeColor = &H0&
txtqty.BackColor = &H80FFFF
End Sub
txtrate.BackColor = &H0&
txtrate.ForeColor = &H80000005
txtbox = "txtrate"
End Sub
enterfun (KeyAscii)
End Sub
txtrate.ForeColor = &H0&
txtrate.BackColor = &H80FFFF
End Sub
str = txtuom.Text
txtuom.Text = ""
txtuom.SetFocus
Else
Exit Sub
End If
End Sub
Private Sub txtitemcode_KeyPress(KeyAscii As Integer)
enterfun (KeyAscii)
KeyAscii = KeyAscii - 32
End If
End Sub
enterfun (KeyAscii)
KeyAscii = KeyAscii - 32
End If
End Sub
Dim i As Integer
Modvariables.recordsetproperty rs
.AddNew
.Fields("itemcode") = txtitemcode.Text
.Fields("itemname") = txtitemname.Text
.Fields("uom") = txtuom.Text
.Fields("itemrate") = Val(txtrate.Text)
.Fields("qty") = Val(txtqty.Text)
rs.Update
End With
Modvariables.disconnectrecordset rs
errorhandler:
txtitemcode.SetFocus
txtitemcode.SelStart = 0
txtitemcode.SelLength = Len(txtitemcode.Text)
duplicate = True
Exit Sub
End If
itemparam = False
check = False
End Sub
vel = vel - 32
bold = vel
Else
bold = vel
End If
End Function
txtitemcode.Enabled = True
txtitemname.Enabled = True
txtuom.Enabled = True
txtrate.Enabled = True
End Sub
txtitemname.Enabled = False
txtuom.Enabled = False
txtrate.Enabled = False
txtqty.Enabled = False
End Sub
num = vel
End If
End Function
txtitemcode.Text = ""
txtitemname.Text = ""
txtuom.Text = ""
txtrate.Text = ""
txtqty.Text = ""
End Sub
txtuom.BackColor = &H0&
txtuom.ForeColor = &H80000005
txtbox = "txtuom"
End Sub
enterfun (KeyAscii)
KeyAscii = bold(KeyAscii)
End Sub
Dim i As Integer
Modvariables.recordsetproperty rs1
rs1.Open "select * from itemmas where itemcode='" & txtitemcode.Text & "'"
rs1.Fields("itemcode") = txtitemcode.Text
rs1.Fields("itemname") = Trim(txtitemname.Text)
rs1.Fields("uom") = Trim(txtuom.Text)
rs1.Fields("itemrate") = Val(txtrate.Text)
rs1.Fields("qty") = Val(txtqty.Text)
rs1.Update
rs1.Close
lstitemname.Visible = False
editfrm = False
End Sub
Private Sub loadingfrm()
Dim i As Integer
Modvariables.recordsetproperty rs
rs.Open "select * from itemmas where itemcode= '" & txtitemcode.Text & "'"
If rs.RecordCount = 0 Then
Exit Sub
Else
txtitemcode.Text = Trim(rs.Fields("itemcode"))
txtitemname.Text = Trim(rs.Fields("itemname"))
txtuom.Text = Trim(rs.Fields("uom"))
txtrate.Text = Trim(rs.Fields("itemrate"))
txtqty.Text = Trim(rs.Fields("qty"))
Modvariables.disconnectrecordset rs
End If
db.Execute "delete from itemmas where itemcode='" & txtitemcode.Text & " '"
emptytext
lstitemname.Visible = False
cmdadd.SetFocus
Else
emptytext
lstitemname.Visible = False
cmdadd.SetFocus
End If
End If
End Sub
txtuom.ForeColor = &H0&
txtuom.BackColor = &H80FFFF
End Sub
txtitemname.Text = lstitemname.List(lstitemname.ListIndex)
txtitemcode.Text = lstitemcode.List(lstitemname.ListIndex)
lstitemname.Visible = False
txtitemname.SetFocus
Exit Sub
End Sub
item1lst = True
End Sub
txtitemname.Text = lstitemname.List(lstitemname.ListIndex)
txtitemcode.Text = lstitemcode.List(lstitemname.ListIndex)
lstitemname.Visible = False
txtitemname.SetFocus
End If
If KeyCode = 27 Then
txtitemname.Text = ""
lstitemname.Visible = False
txtitemname.SetFocus
End If
txtitemname.Text = lstitemname.List(lstitemname.ListIndex + 1)
txtitemcode.Text = lstitemcode.List(lstitemname.ListIndex + 1)
End If
End Sub
If KeyAscii = 13 Then
txtitemname.Text = lstitemname.List(lstitemname.ListIndex)
txtitemcode.Text = lstitemcode.List(lstitemname.ListIndex)
lstitemname.Visible = False
End If
End Sub
txtitemname.Text = lstitemname.List(lstitemname.ListIndex)
txtitemcode.Text = lstitemcode.List(lstitemname.ListIndex)
lstitemname.Visible = False
txtitemname.SetFocus
End If
If KeyCode = 27 Then
txtitemname.Text = ""
lstitemname.Visible = False
txtitemname.SetFocus
End If
txtitemname.Text = lstitemname.List(lstitemname.ListIndex)
txtitemcode.Text = lstitemcode.List(lstitemname.ListIndex)
End If
End Sub
txtitemname.ForeColor = &H0&
txtitemname.BackColor = &H80FFFF
lstitemname.Visible = False
End If
item1lst = False
'lbllistname.Caption = ""
End Sub
lstitemname.SetFocus
End If
If KeyCode = 13 Then
txtitemname.SetFocus
Else
txtuom.SetFocus
Else
cmddelete.SetFocus
End If
End If
End If
End If
End Sub
Modvariables.recordsetproperty rs1
str = Trim(txtitemname.Text)
rs1.Open "select itemcode,itemname from itemmas where itemname " & " like '" & str & "%" &
"'"
If rs1.RecordCount = 0 Then
lstitemname.clear
lstitemcode.clear
Else
lstitemname.clear
lstitemcode.clear
For k = 1 To rs1.RecordCount
lstitemcode.AddItem Trim(rs1.Fields("itemcode"))
lstitemname.AddItem Trim(rs1.Fields("itemname"))
rs1.MoveNext
Next
End If
Modvariables.disconnectrecordset rs1
End Sub
SHIFT MASTER FORM
Option Explicit
Public ncnt As Integer, j As Integer, gtotal As Double, gridclik As Boolean, totamount As Double
Public reqqty As Long, dispqty As Long, totbal As Long, disqty As Long, baltoday As Long
'Modvariables.recordsetproperty rs
'rs.Open "select * from oahdr where oano= " & Trim(txtoano.Text) & ""
'Exit Sub
'End If
'txtoano.Text = Trim(rs.Fields("oano"))
'txtoadate.Day = Day(rs.Fields("oadate"))
'txtoadate.Month = Month(rs.Fields("oadate"))
'txtoadate.Year = Year(rs.Fields("oadate"))
'txtcustcode.Text = rs.Fields("custcode")
'Modvariables.recordsetproperty rs1
'rs1.Open "select * from cust where custcode='" & rs.Fields("custcode") & "' "
'txtcustname.Text = Trim(rs1.Fields("custname"))
'rs1.Close
'Modvariables.recordsetproperty rs1
'For k = 1 To rs1.RecordCount
'grid1.TextMatrix(k, 0) = srn
'grid1.TextMatrix(k, 1) = Trim(rs1.Fields("itemname"))
'grid1.TextMatrix(k, 2) = Trim(rs1.Fields("itemcode"))
'grid1.TextMatrix(k, 3) = Trim(rs1.Fields("schqty"))
'Call bal
'rs1.MoveNext
'grid1.Rows = grid1.Rows + 1
'srn = srn + 1
'Next k
'Modvariables.disconnectrecordset rs1
'grid1.SetFocus
'End Sub
Modvariables.disconnectrecordset rs3
Modvariables.recordsetproperty rs3
rs3.Open " select sum(dispqty)from dispatchdtl where oano=" & txtoano.Text & " and
itemcode='" & grid1.TextMatrix(k, 2) & "'"
If IsNull(rs3(0)) Then
dispqty = 0
Else
dispqty = rs3(0)
End If
Else
dispqty = 0
End If
grid1.TextMatrix(k, 4) = Val(dispqty)
Modvariables.disconnectrecordset rs3
End Sub
Unload Me
End Sub
'txtdispno.Enabled = False
'dispdate.Enabled = False
'txtpono.Enabled = False
'txtoadate.Enabled = False
'txtcustname.Enabled = False
'End Sub
grid1.ColWidth(0) = 250
grid1.ColWidth(1) = 2600
grid1.ColWidth(2) = 0
grid1.ColWidth(3) = 1200
grid1.ColWidth(4) = 1200
grid1.ColWidth(5) = 1200
grid1.ColWidth(6) = 1200
grid1.ColWidth(7) = 1200
grid1.TextMatrix(0, 0) = "SrNo"
grid1.TextMatrix(0, 6) = "Rate"
grid1.TextMatrix(0, 7) = "Disp.Qty"
End Sub
'txtdispno.Enabled = True
'dispdate.Enabled = True
'txtpono.Enabled = True
'txtoadate.Enabled = True
'txtcustname.Enabled = True
'End Sub
'Private Sub emptytxt()
'txtpono.Text = ""
'txtcustname.Text = ""
'txtitemname.Text = ""
'Dim i As Integer
'Call position
'For i = 0 To grid1.Cols - 1
'grid1.TextMatrix(1, i) = ""
'Next i
'For i = 1 To grid1.Rows - 1
'grid1.TextMatrix(i, 0) = ""
'grid1.TextMatrix(i, 1) = ""
'grid1.TextMatrix(i, 2) = ""
'grid1.TextMatrix(i, 3) = ""
'grid1.TextMatrix(i, 4) = ""
'grid1.TextMatrix(i, 5) = ""
'grid1.TextMatrix(i, 6) = ""
'grid1.TextMatrix(i, 7) = ""
'Next i
'grid1.Rows = 2
'srn = 1
'End Sub
vel = vel - 32
bold = vel
Else
bold = vel
End If
End Function
If vel = 8 Then
datefun = vel
Else
datefun = 0
End If
Else
If vel = 46 Then
datefun = 47
Else
datefun = vel
End If
End If
End Function
validstr = False
txtdispno.SetFocus
Exit Sub
End If
'txtcustname.SetFocus
'Exit Sub
'End If
check = 0
For i = 1 To grid1.Rows - 1
check = 1
End If
Next
If check = 0 Then
Exit Sub
End If
Dim p1 As Integer
p1 = 0
For i = 1 To grid1.Rows - 1
'MsgBox "Qty Can not be blank " & i & " Row"
p1 = 1
Else
p1 = 0
Exit For
End If
End If
Next i
If p1 = 1 Then
validstr = False
grid1.SetFocus
Exit Sub
End If
For i = 1 To grid1.Rows - 1
MsgBox ("Dispatch Qty cann't be greater than balance qty in " & i & " Row ")
validstr = False
grid1.SetFocus
Exit Sub
End If
Next i
validstr = True
End Sub
Private Sub cmdsave_Click()
enabletxt
valid
duplicate = False
Exit Sub
End If
End Sub
enabletxt
txtdispno.Enabled = False
dispdate.Enabled = True
dispdate.SetFocus
End Sub
'Modvariables.connect
'rmlst = False
'rmlst1 = False
'ctnamelst = False
'cels = 1
'srn = 1
'gridcount = 1
'gridcount1 = 1
'ctnametxt = False
'clear = False
'flag1 = False
'gridedit = False
'dispdate.Value = Date
'txtoadate.Value = Date
'disabletxt
'emptytxt
'txtcustname.Locked = True
'loadgrid1
'validstr = False
'duplicate = False
'Call increase
'End Sub
Private Function numeric(vel)
numeric = vel
End If
End Function
'modvariables.disconnect
End Sub
End Sub
txtitemcode.Text = lstitemcode.List(lstitemname.ListIndex)
txtitemname.Text = lstitemname.List(lstitemname.ListIndex)
lstitemname.Visible = False
txtitemname.SetFocus
End Sub
rmlst = True
If KeyCode = vbKeySpace Then
txtitemcode.Text = lstitemcode.List(lstitemname.ListIndex)
txtitemname.Text = lstitemname.List(lstitemname.ListIndex)
lstitemname.Visible = False
txtitemname.SetFocus
End If
If KeyCode = 27 Then
txtitemname.Text = ""
lstitemname.Visible = False
txtitemname.SetFocus
End If
txtitemcode.Text = lstitemcode.List(lstitemname.ListIndex)
txtitemname.Text = lstitemname.List(lstitemname.ListIndex + 1)
End If
End If
txtitemcode.Text = lstitemcode.List(lstitemname.ListIndex)
txtitemname.Text = lstitemname.List(lstitemname.ListIndex - 1)
End If
End If
End Sub
'rmlst = True
End Sub
txtcustname.ForeColor = &H0&
txtcustname.BackColor = &H80FFFF
End Sub
txtitemname.BackColor = &H0&
txtitemname.ForeColor = &H80000005
rmlst = False
End Sub
lstitemname.SetFocus
End If
End If
End Sub
KeyAscii = KeyAscii - 32
End If
If KeyAscii = 13 Then
For i = 1 To grid1.Rows - 1
txtitemname.Text = ""
txtitemname.SetFocus
Exit Sub
Exit For
End If
Next i
grid1.TextMatrix(gridcount, 0) = srn
grid1.TextMatrix(gridcount, 1) = txtitemname.Text
grid1.TextMatrix(gridcount, 2) = lstitemcode.List(lstitemname.ListIndex)
grid1.Rows = grid1.Rows + 1
gridcount = gridcount + 1
srn = srn + 1
grid1.SetFocus
End If
End Sub
'grid1.TextMatrix(grid1.Row, 0) = ""
'Else
'grid1.TextMatrix(grid1.Row, 0) = "X"
'End If
'End If
'End If
'End Sub
txtitemname.BackColor = &H80FFFF
End Sub
End Sub
KeyAscii = KeyAscii
Else
KeyAscii = 0
End If
End If
' KeyAscii = 0
' End If
'End If
If KeyAscii = 8 Then
Dim i As Integer
Text1.SelStart = 0
i = Len(Text1.Text)
Text1.SelLength = i - 1
Text1.Text = ""
i=0
Exit Sub
End If
End Sub
txtdispno.ForeColor = &H0&
txtdispno.BackColor = &H80FFFF
End Sub
End Sub
txtoano.BackColor = &H0&
txtoano.ForeColor = &H80000005
End Sub
txtoano.ForeColor = &H0&
txtoano.BackColor = &H80FFFF
Exit Sub
End If
'cmdhelp.Enabled = False
End Sub
txtdispno.BackColor = &H0&
txtdispno.ForeColor = &H80000005
If KeyAscii = 13 Then
dispdate.SetFocus
KeyAscii = bold(KeyAscii)
KeyAscii = numeric(KeyAscii)
End If
End Sub
'txtoano.SetFocus
'Exit Sub
'End If
'emptytxt
'loadingfrm
'grid1.SetFocus
'End If
'KeyAscii = KeyAscii - 32
'Else
'KeyAscii = KeyAscii
'End If
'End Sub
Modvariables.recordsetproperty rs
Modvariables.recordsetproperty rs1
Modvariables.recordsetproperty rs2
With rs
.AddNew
.Fields("dispno") = txtdispno.Text
.Fields("dispdate") = dispdate.Value
'.Fields("custcode") = txtcustcode.Text
'.Fields("oano") = Trim(txtoano.Text)
'.Fields("oadate") = txtoadate.Value
.Update
End With
rs.Close
For i = 1 To grid1.Rows - 2
If grid1.TextMatrix(i, 0) <> "X" And Val(grid1.TextMatrix(i, 7)) <> 0 Then
With rs
.AddNew
.Fields("dispno") = Val(txtdispno.Text)
'.Fields("oano") = Val(txtoano.Text)
.Fields("dispdate") = dispdate.Value
End With
rs.Update
End If
Next
rs.Close
End Sub
Modvariables.recordsetproperty rs
If rs.RecordCount = 0 Then
txtdispno.Text = 1
Exit Sub
Else
rs.MoveLast
txtdispno.Text = rs.Fields(0) + 1
End If
Modvariables.disconnectrecordset rs
End Sub
DISPATCH FORM
Public state As Boolean
Dim rs As ADODB.Recordset
Dim f As Variant
'datapath = "c:\sis\victor.acs"
'Me.Top = 300
'Me.Left = 300
' Genie.Show
'
End Sub
Modvariables.recordsetproperty rs
rs.Close
rs.Close
rs.Close
rs.Close
rs.Close
rs.Close
End Sub
'Private Sub Form_Load()
'cd.PrinterName = Printer.DeviceName
'cd.PrinterPort = Printer.Port
'cd.PrinterDriver = Printer.DriverName
'
'Modvariables.connect
'End Sub
End Sub
frmfeewiz.Show
End Sub
frmauthr.Show
''frmmainmenu.Enabled = False
End Sub
Private Sub mnu_iss_Click()
End Sub
bookaenq.Show
''frmmainmenu.Enabled = False
End Sub
frmcatlg.Show
''frmmainmenu.Enabled = False
End Sub
frmbebt.Show
''frmmainmenu.Enabled = False
End Sub
frmempenq.Show
''frmmainmenu.Enabled = False
End Sub
mjenquiry.Show
''frmmainmenu.Enabled = False
End Sub
'MDIguru.Hide
Unload Me
End Sub
frmpndenq.Show
'''frmmainmenu.Enabled = False
End Sub
priodenq.Show
''frmmainmenu.Enabled = False
End Sub
frmpubmas.Show
''frmmainmenu.Enabled = False
End Sub
frmreceivesm.Show
''frmmainmenu.Enabled = False
End Sub
frmreceive.Show
''frmmainmenu.Enabled = False
End Sub
frmsenq.Show
''frmmainmenu.Enabled = False
End Sub
frmissuesm.Show
''frmmainmenu.Enabled = False
End Sub
frmissue.Show
''frmmainmenu.Enabled = False
End Sub
End Sub
frmsupmas.Show
''frmmainmenu.Enabled = False
End Sub
Private Sub mnuacmas_Click()
frmahead.Show
''frmmainmenu.Enabled = False
End Sub
frmvfees.Show
''frmmainmenu.Enabled = False
End Sub
frmacmas.Show
''frmmainmenu.Enabled = False
End Sub
frmaccwiz.Show
End Sub
frmprod2nd1.Show
End Sub
frmoprmas.Show
End Sub
frmadmission.Show
End Sub
detail
frmaddetail.Show
End Sub
End Sub
Private Sub mnuar_Click()
cd.connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\gurukul\data\gurukul.mdb;Persist Security Info=False;"
cd.DiscardSavedData = True
cd.ReportFileName = "c:\gurukul\reports\accessionreg.rpt"
cd.PrinterSelect
cd.Action = 1
End Sub
Modvariables.setname
cd.connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\gurukul\data\gurukul.mdb;Persist Security Info=False;"
cd.DiscardSavedData = True
cd.ReportFileName = "c:\gurukul\reports\bloodgroup.rpt"
cd.PrinterSelect
cd.Action = 1
End Sub
frmrptbirthdaylist.Show
End Sub
Dim calc
calc = Shell("c:\sis/calc.exe", 1)
End Sub
frmadmres.Show
End Sub
frmbrequ.Show
End Sub
concise
frmcategorywise.Show
End Sub
detail
frmcategorywise.Show
End Sub
frmcharacter.Show
End Sub
concise
frmclasswise.Show
End Sub
detail
frmclasswise.Show
End Sub
Modvariables.setname
cd.connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\gurukul\data\gurukul.mdb;Persist Security Info=False;"
cd.DiscardSavedData = True
cd.ReportFileName = "c:\gurukul\reports\progressreport.rpt"
cd.PrinterSelect
cd.Action = 1
End Sub
frmclmas.Show
''frmmainmenu.Enabled = False
End Sub
End Sub
End Sub
frmsft_a.Show
End Sub
frmdis_a.Show
End Sub
frnmachinemas.Show
End Sub
cd.connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\gurukul\data\gurukul.mdb;Persist Security Info=False;"
cd.DiscardSavedData = True
cd.ReportFileName = "c:\gurukul\reports\psalenot.rpt"
cd.PrinterSelect
cd.Action = 1
End Sub
''frmmainmenu.Enabled = False
End Sub
frmgreeting.Show
End Sub
frmeTSP.Show
End Sub
frmestat.Show
End Sub
frmerout.Show
End Sub
End Sub
frmsale.Show
''frmmainmenu.Enabled = False
End Sub
frmenter.Show
''frmmainmenu.Enabled = False
End Sub
frmexmas.Show
''frmmainmenu.Enabled = False
End Sub
frmsft_d.Show
End Sub
Private Sub mnudel2_Click()
frmdis_d.Show
End Sub
End Sub
frmsft_e.Show
End Sub
frmdis_e.Show
End Sub
Unload Me
End Sub
End Sub
frmrptreceipt.Show
End Sub
frmgsal.Show
End Sub
frmhldtl.Show
End Sub
frmphysic.Show
End Sub
frmitemmas.Show
End Sub
frmmissue.Show
End Sub
prdcldtl.Show
End Sub
frmmrec.Show
End Sub
mrecsm.Show
'''frmmainmenu.Show
End Sub
misstosm.Show
''frmmainmenu.Enabled = False
End Sub
frmmarksheet.Show
End Sub
Modvariables.setname
cd.connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\gurukul\data\gurukul.mdb;Persist Security Info=False;"
cd.DiscardSavedData = True
cd.ReportFileName = "c:\gurukul\reports\muster.rpt"
cd.PrinterSelect
cd.Action = 1
End Sub
frmnewad.Show
End Sub
frmnews.Show
End Sub
frmesveh.Show
End Sub
frmpyenq.Show
''frmmainmenu.Enabled = False
End Sub
frmpayslip.Show
End Sub
frmrcptnow.Show
'frmpend.Show
End Sub
frmprd.Show
'''frmmainmenu.Enabled = False
End Sub
frmexres.Show
''frmmainmenu.Enabled = False
End Sub
frmedit.Show
''frmmainmenu.Enabled = False
frmload = "frprosrec"
editme = True
End Sub
Modvariables.setname
cd.connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\gurukul\data\gurukul.mdb;Persist Security Info=False;"
cd.DiscardSavedData = True
cd.PageZoom (3)
cd.ReportFileName = "c:\gurukul\reports\rcpnodtl.rpt"
cd.PrinterSelect
cd.Action = 1
End Sub
concise
frmregionwise.Show
End Sub
detail
frmregionwise.Show
End Sub
frmesdbc.Show
End Sub
frmroute.Show
End Sub
frmhotra.Show
''frmmainmenu.Enabled = False
End Sub
frmchrpt.Show
End Sub
End Sub
frmscmas.Show
''frmmainmenu.Enabled = False
End Sub
frmeFNR.Show
End Sub
frmsnenq.Show
''frmmainmenu.Enabled = False
End Sub
FRMEBHTI.Show
''frmmainmenu.Enabled = False
End Sub
Private Sub mnusl_Click()
cd.connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\gurukul\data\gurukul.mdb;Persist Security Info=False;"
cd.DiscardSavedData = True
cd.ReportFileName = "c:\gurukul\reports\studentledger.rpt"
cd.PrinterSelect
cd.Action = 1
End Sub
frmslc.Show
End Sub
frmslrpt.Show
End Sub
cd.connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\gurukul\data\gurukul.mdb;Persist Security Info=False;"
cd.DiscardSavedData = True
cd.ReportFileName = "c:\gurukul\reports\staffledger.rpt"
cd.PrinterSelect
cd.Action = 1
End Sub
frmplace.Show
End Sub
frmstmas.Show
''frmmainmenu.Enabled = False
End Sub
frmsbmas.Show
''frmmainmenu.Enabled = False
End Sub
state = True
End Sub
state = False
End Sub
frmvaenq.Show
''frmmainmenu.Enabled = False
End Sub
frmwizard.Show
End Sub
Modvariables.setname
cd.DiscardSavedData = True
cd.ReportFileName = "c:\gurukul\reports\transcheck.rpt"
'cd.ParameterFields(0) = ("name;" & Modvariables.schoolname & ";true")
cd.PrinterSelect
cd.Action = 1
End Sub
frmevehi.Show
End Sub
frmvehicle.Show
End Sub
Dim iwlot2
iwlot2 = Shell("c:\e-apps\reports\lotnowiseprod2opr.exe", 1)
End Sub
iwdwpr2 = Shell("c:\e-apps\reports\itemwiseprod2opr.exe", 1)
End Sub
Dim mwise2
mwise2 = Shell("c:\e-apps\reports\machinewiseprod2opr.exe", 1)
End Sub
Dim oprprod2opr
oprprod2opr = Shell("c:\e-apps\reports\operationwiseprod2opr.exe", 1)
End Sub
Dim oprprod1
oprprod1 = Shell("c:\e-apps\reports\operatorwiseprod2opr.exe", 1)
End Sub
frmproduction1.Show
End Sub
Dim iwlot1
iwlot1 = Shell("c:\e-apps\reports\lotnowiseprod1opr.exe", 1)
End Sub
Dim iwdwpr1
iwdwpr1 = Shell("c:\e-apps\reports\itemwiseprod1opr.exe", 1)
End Sub
Dim mwise1
mwise1 = Shell("c:\e-apps\reports\machinewiseprod1opr.exe", 1)
End Sub
Dim operationprod1
operationprod1 = Shell("c:\e-apps\reports\operationwiseprod1opr.exe", 1)
End Sub
Private Sub mnuist6_Click()
Dim opr1prod
opr1prod = Shell("c:\e-apps\reports\opreratorwiseprod1opr.exe", 1)
End Sub
frmoaschedule_a.Show
End Sub
'frmrmmachinejob.Show
End Sub
Dim itemmas
itemmas = Shell("c:\e-apps\reports\itemmas.exe", 1)
End Sub
Dim machinemas
machinemas = Shell("c:\e-apps\reports\machinemas.exe", 1)
End Sub
frmsft_m.Show
End Sub
frmdis_m.Show
End Sub
Dim oprmas
oprmas = Shell("c:\e-apps\reports\oprmas.exe", 1)
End Sub
Dim prodjob2
prodjob2 = Shell("c:\e-apps\reports\productionjobiind.exe", 1)
End Sub
Private Sub mnuprodist_Click()
Dim prodjob1
prodjob1 = Shell("c:\e-apps\reports\productionjobcard.exe", 1)
End Sub
frmproduction2.Show
End Sub
frmrmreturn.Show
End Sub
Dim rawmprod1
rawmprod1 = Shell("c:\e-apps\reports\rawmaterialwiseprod1opr.exe", 1)
End Sub
Case "k1":
frmrmmachineissue.Show
Case "k2":
frmprod2nd.Show
Case "k3":
frmproduction2.Show
Case "k4":
frmproduction1.Show
Case "k5":
Unload Me
frmmain.Show
End Select
End Sub
SCREEN OUTPUT
WELCOME FORM
LOGIN FORM
MDI FORM
ITEM MASTER FORM
MACHINE MASTER FORM
SHIFT MASTER FORM
DISPATCH FORM