|
本人按书上写的在子窗体"成为当前"中写入了如下程序,为什么只能看到当前输入的数据,而看不到表中的所有记录表,请大家指点!
Private Sub Form_Current()
On Error GoTo Err_Form_Current
'把子窗体中当前记录值赋予主窗体对应的文本框内
Forms![产品管理]![订单号] = Me![订单号]
Forms![产品管理]![产品ID] = Me![产品ID]
Forms![产品管理]![出货日期] = Me![出货日期]
Forms![产品管理]![客户名称] = Me![客户名称]
Forms![产品管理]![出货数量] = Me![出货数量]
Forms![产品管理]![单位] = Me![单位]
Forms![产品管理]![出货价格] = Me![出货价格]
Forms![产品管理]![出货金额] = Me![出货金额]
Exit_Form_Current:
Exit Sub
Err_Form_Current:
MsgBox Err.Description
Resume Exit_Form_Current
End Sub |
|