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 7895413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:38:16+00:00 2026-06-03T07:38:16+00:00

I have 3 fields in an access form. Field 1 – is a text

  • 0

I have 3 fields in an access form.

  • Field 1 – is a text field pre-populated with some data. There are no null records
  • Field 2 – is a text field pre-populated with some data. It can either have a value or be null.
  • Field 3 – Is a text field. The user will enter information into the field.

There is a rule. If there is a null value in field 2, then field 3 will equal the value from field 1 and so I want it to automatically populate field 3 from field 1. if the value is not null, then the user will populate the field record manually.

I have set up a form load event to:

If Me.field2 = "" Then
   Me.field3 = Me.field1

The problem I am having is, the user may want to change the pre-populated value of field 1 and if the corresponding field 2 record is blank, I want field 3 to be updated with the same value the user changed in field 1. I don’t want to have to reload the form all the time for this update to occur. I’ve tried the above syntax in a After_Update event and a change event, but it’s not updating.

Can anyone suggest what I am doing wrong?

Thanks,
Mike

  • 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-06-03T07:38:17+00:00Added an answer on June 3, 2026 at 7:38 am

    Mike’s already got his answer, but I’ll give a fuller answer in the form of an explanation.

    The problem here is that you are trying to compare a field that is null to an empty string. It’s like you’ve done

    if null = "" then
        'do stuff
    end if 
    

    The problem is when null is used in a comparison, the result is always null – which causes the if to evaluate to false. You can’t even do this:

    if not(null) then
        'do stuff
    end if 
    

    or

    if not (null <> "") then
        'do stuff
    end if 
    

    The conventional solution is to us isnull(x), which evaluates to true if x is null.

    As Tim Williams indicate, you can use:

    IsNull(x) or x="" 
    

    Some might consider the x="" to be redundant if x can only return null for an empty string.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Access table with fields, in which there is some data and path
In one of the ms-access table I work with we have a text field
I'd like to have access to one my model field verbose_name. I can get
I have a simple form in Access. There are number of textfields. There is
Is it possible to have a C++ template function which can access different fields
I have a simple login form that has 2 text fields and a button.
I have form $form, which have text field for each entity User . $form
I have a table in an Access 2007 database. All fields are of type
In my SQL query in Access 2000, I have a field containing numbers like:
I would like to have access to the Seconds_Behind_Master field, (as returned by SHOW

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.