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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:33:44+00:00 2026-06-15T01:33:44+00:00

I am requesting some guidance to fix this problem I have been having while

  • 0

I am requesting some guidance to fix this problem I have been having while trying to edit the “AfterUpdate” event in my database. It seems to work fine on my local machine but when I try to implement it in the network database it doesn’t work properly (occasionally puts in a random date in one of the fields, doesn’t erase the date when I supply a new ID, etc.)

Here is the VBA Code I have:

Private Sub provider_surveyID_AfterUpdate()

provider_survey_dueDate = DateAdd("ww", 2, DLookup("completed_on",
 "qry_ProviderSurveyInfo", "provider_surveyID=" & provider_surveyID))
provider_survey_reminder2weeks = DateAdd("ww", 4, DLookup("completed_on", 
 "qry_ProviderSurveyInfo", "provider_surveyID=" & provider_surveyID))
provider_survey_reminder4weeks = DateAdd("ww", 6, DLookup("completed_on", 
 "qry_ProviderSurveyInfo", "provider_surveyID=" & provider_surveyID))

End Sub

The query is correct, joining the Survey ID to the appropriate participant to determine the original “completed_on” date that is used in the DateAdd functions.

Can you see any reason why it would not work as it does on local – removing dates when entering IDs currently not in use? Also, think it would be wise to use Nz(provider_surveyID,0) in this instance? I haven’t implemented it yet as I wanted to make it work appropriately as it does on my local with no issues whatsoever – I enter for the ID, it populates; I enter 20 (not in use yet), it makes all dates null again.

  • 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-15T01:33:46+00:00Added an answer on June 15, 2026 at 1:33 am

    Dlookups can be slow and tricky to use, it will also return random values when the Criteria isn’t entered. I’m not sure on how your form is put together (I’m assuming it’s a form), and this may be a partial answer:

    Private Sub provider_surveyID_AfterUpdate()
    Dim dtComplete as Date
    
    If IsNull(provider_serveyID) then
        provider_survey_dueDate=""
        provider_survey_reminder2weeks=""
        provider_survey_reminder4weeks=""
    Else
        dtComplete = DLookup("completed_on","qry_ProviderSurveyInfo", "provider_surveyID=" & provider_surveyID)
        provider_survey_dueDate=DateAdd("ww",2,dtComplete)
        provider_survey_reminder2weeks=DateAdd("ww",4,dtComplete)
        provider_survey_reminder4weeks=DateAdd("ww",6,dtComplete)
    End if
    End sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

**NOTE: This is related to a college assignment. I'm only requesting some guidance in
I have this query in my database helper requesting a Google map URL string,
I've been looking at various RIA and have noticed some folks using or requesting
I have several gen_server workers periodically requesting some information from hardware sensors. Sensors may
I have got a simple flex client requesting some data from a php script.
EDIT: Update - scroll down EDIT 2: Update - problem solved Some background information:
Quick question, looking for some recommendations. I have a site that will be requesting
I requesting some data using jquery ajax function.i have to display requested data in
I have an NSMutableArray of objects (in my case some systems). I'm requesting new
I have a problem requesting website with httparty gem: anti-bot system responds me with

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.