Form ?

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

Guest

I have a form with an input box. After I hit the Ok key on the form I want a
query to run using the data from the input box and display the results on the
form in other text boxes. How do you perform this?
 
Ok, I got a textbox called cancon that I put a number into and want it to
update another field with the following VIN from the contract table. Nothing
is happening on the ViN field when i put a value in the cancon field on the
form? help

Private Sub VIN_BeforeUpdate(Cancel As Integer)
Dim varX As Variant
varX = DLookup("[VIN]", "contract", "[Contract number] =" _
& Forms![Form1]!cancon)
End Sub
 
Am I thinking correctly that as soon as I enter something in the cancon
field, press the enter key, the VIN field should automatically get updated?
 

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