datPrimaryRS.Recordset.MoveFirst ‘datPrimaryRS为Data控件 If
IsNull(datPrimaryRS.Recordset!姓名) = False Then xlSheet.Cells(4, 2) =
datPrimaryRS.Recordset!姓名 End If If
IsNull(datPrimaryRS.Recordset!性别) = False Then xlSheet.Cells(4, 4) =
datPrimaryRS.Recordset!性别 End If If
IsNull(datPrimaryRS.Recordset!民族) = False Then xlSheet.Cells(4, 6) =
datPrimaryRS.Recordset!民族 End If ………………