Article ID: 109943
Article Last Modified on 5/6/2003
- Single-Column
- Include both fields
- Sort by Employee Name
- Select Executive style
ControlName: City
ControlSource: <leave empty>
Option Explicit
Function fillrep()
Dim ds as Dynaset, db as Database
Set db=CurrentDB()
set ds=db.CreateDynaset("Employees")
ds.MoveFirst
ds.FindFirst "[Employee ID]=" & Reports![Fill Report1]![Employee _
ID]
Reports![Fill Report1]![City]=ds![city]
End Function
=fillrep()
- Single-Column
- Include both fields
- Sort by Employee Name
- Select Executive style
ControlName: City
ControlSource: <leave empty>
Function fillit()
Dim ds as Dynaset, db as Database
Set db=CurrentDB()
set ds=db.CreateDynaset("Employees")
ds.MoveFirst
ds.FindFirst "[Employee ID]=" & Reports![Fill Report2]![Employee _
ID]
fillit=ds!city
End Function
=fillit()
Keywords: kbhowto kbusage KB109943