计算机应用 | 古代文学 | 市场营销 | 生命科学 | 交通物流 | 财务管理 | 历史学 | 毕业 | 哲学 | 政治 | 财税 | 经济 | 金融 | 审计 | 法学 | 护理学 | 国际经济与贸易
计算机软件 | 新闻传播 | 电子商务 | 土木工程 | 临床医学 | 旅游管理 | 建筑学 | 文学 | 化学 | 数学 | 物理 | 地理 | 理工 | 生命 | 文化 | 企业管理 | 电子信息工程
计算机网络 | 语言文学 | 信息安全 | 工程力学 | 工商管理 | 经济管理 | 计算机 | 机电 | 材料 | 医学 | 药学 | 会计 | 硕士 | 法律 | MBA
现当代文学 | 英美文学 | 通讯工程 | 网络工程 | 行政管理 | 公共管理 | 自动化 | 艺术 | 音乐 | 舞蹈 | 美术 | 本科 | 教育 | 英语 |

地籍登记管理系统+vb(一)毕业论文(5)

2013-05-10 18:04
导读:bsp; End If If rs.Fields(j).Name = "抵押期限" Then Text4.Text = rs.Fields(j) End If If rs.Fields(j).Name = "抵押日期" Then DTPicker2.Value = rs.Fields(j) End If Next j End If End If Command1.E
bsp;      End If
             If rs.Fields(j).Name = "抵押期限" Then
             Text4.Text = rs.Fields(j)
             End If
             If rs.Fields(j).Name = "抵押日期" Then
             DTPicker2.Value = rs.Fields(j)
             End If
         Next j
        End If
      End If
      Command1.Enabled = True
End If
bb:
 
End Sub


三:初始登记界面设计

初始界面代码设计:
Option Explicit
Public InitWidth As Long       ' Form 的原始大小
Public InitHeight As Long
Public flstype As Integer
Public zdhao1, zdhao As String
Public selrow As Integer


Private Sub Command1_Click()
Dim I As Integer
rs.AddNew

If flxGridhistory.TextMatrix(1, 1) = "" Then
MsgBox "宗地号不能为空!", vbInformation, "输入检查"
Else

For I = 0 To flxGridhistory.Rows - 2
flxGridhistory.Row = I + 1
selrow = flxGridhistory.Row
flstype = rs.Fields(selrow - 1).Type

Select Case flstype
Case 10
rs.Fields(I) = flxGridhistory.TextMatrix(I + 1, 1) & ""
Case 8
If flxGridhistory.TextMatrix(I + 1, 1) <> "" Then
rs.Fields(I) = flxGridhistory.TextMatrix(I + 1, 1)
Else
    rs.Fields(I) = DateSerial(1900, 1, 1)
End If
Case 6, 3, 4

If flxGridhistory.TextMatrix(I + 1, 1) <> "" Then 本文来自中国科教评价网
rs.Fields(I) = flxGridhistory.TextMatrix(I + 1, 1)
Else
rs.Fields(I) = 0
End If
End Select

Next I
On Error GoTo errordowith
rs.Update

On Error GoTo 0
db.Recordsets.Refresh

If flxGridhistory.TextMatrix(1, 1) = "" Then
Exit Sub
Else
MsgBox "入库完毕!"
zdhao = flxGridhistory.TextMatrix(1, 1)
End If


Command2.Enabled = True
Command1.Enabled = False

End If


Exit Sub

errordowith:
MsgBox "有重复数据!!!"


End Sub


Private Sub Command2_Click()
rs.FindFirst ("宗地号 = '" & zdhao & "'")
rs.Delete
Dim j As Integer
For j = 1 To flxGridhistory.Rows - 1
flxGridhistory.TextMatrix(j, 1) = ""
Next j
Command2.Enabled = False
End Sub

Private Sub Command3_Click()

Unload Me
frmdengji.Show

End Sub

Private Sub Command4_Click()
Dim j, m As Integer
If flxGridhistory.TextMatrix(1, 1) = "" Then
     
  MsgBox "宗地号不能为空,请重新输入!", vbOKOnly + vbInformation, "输入检查"
Else
 
  'zdhao = flxGridhistory.TextMatrix(1, 1)
  rs.FindFirst ("宗地号 = '" & zdhao1 & "'")


On Error GoTo 0

End Sub


Private Sub Form_Resize()
Dim D(4) As Double
Dim I As Long
Dim TempPos As Long
Dim StartPos As Long
Dim Ctl As Control
Dim TempVisible As Boolean
Dim ScaleX As Double
Dim ScaleY As Double

ScaleX = ScaleWidth / InitWidth
ScaleY = ScaleHeight / InitHeight
On Error Resume Next
For Each Ctl In Me
    TempVisible = Ctl.Visible
    Ctl.Visible = False
    StartPos = 1
    ' 读取 Control 的原始位置、大小、字型大小

(科教范文网http://fw.NSEAC.com编辑发布)


 &n
上一篇:车辆管理系统+vb(一)毕业论文网 下一篇:没有了