Dlookup

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Here is my code, does anyone know why the dlookup doesn't work

ProjNum returns the value "09879

Code starts here***************************

Private Sub Report_Open(Cancel As Integer
ProjNum = InputBox("Generate an EPS Report for which project number?", "Project Number?"
Me.Text111.ControlSource = "='" & ProjNum & "'
ProdName = DLookup("[Project Name]", "Query1", "[Project Number]=" & ProjNum
Me.Text36.ControlSource = "='" & ProdName & "'

code ends here***********************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top