Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7615987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:46:44+00:00 2026-05-31T02:46:44+00:00

I am trying to update the text box using dlookup when the user selects

  • 0

I am trying to update the text box using dlookup when the user selects a item in combo box, I cannot do dlookup in control source of text box since i need to store it in the table, so I am doing it in default value.

Here is the dlookup but it is not working:

=DLookUp([Ground Clearance_inches],”tbVehicles”,”[Vehicle]=[Forms]![Cover Data]![vehicle]”)

note that Ground Clearance_inches is number datatype in the tbVehicles table.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:46:46+00:00Added an answer on May 31, 2026 at 2:46 am

    That should be

    Private Sub vehicle_AfterUpdate() 
        ''Vehicle is a number
        Me.MyTextBoxNameHere = _
           DLookUp("[Ground Clearance_inches]","tbVehicles","[Vehicle]= " _
           & [Forms]![Cover Data]![vehicle]) 
    
        ''Vehicle is text 
        Me.MyTextBoxNameHere = _
           DLookUp("[Ground Clearance_inches]","tbVehicles","[Vehicle]= '" _
           & Replace([Forms]![Cover Data]![vehicle], "'","''") & "'") 
    
        ''If the current form is [Cover Data] then 
        Me.MyTextBoxNameHere = _
           DLookUp("[Ground Clearance_inches]","tbVehicles","[Vehicle]= '" _
           & Replace(Me.[vehicle], "'","''") & "'") 
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to update my text area via ActionScript code using this: scoreLabel.text =
I am trying update text views while this loop is processing. Here is my
So I'm trying to update an object in my MS SQL 2005 database using
I'm trying to animate something using jQuery. UPDATE I have it working the way
I have a combo box and a datagrid in my page. when the user
I am trying to populate a text box with some data, namely the names
i have been trying to get the source of a page in php using
I'm trying to get a textarea's value to update using jquery as outlined in
I am using jeditable, the place holder is a text. I am trying to
I am writing text to a multi-line text box using data from the serial

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.