Results 1 to 2 of 2
  1. #1
    RockOnRay is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2013
    Posts
    2

    Lookup For The Value In A Field

    Good Morning ,

    I am working on a database where i have to show the user last modification date of the files they are getting the data from. I have already completed that process. Used GetDatetime to find the files last modification date and time. And now i am moving on to the next step and Here is the scenario.

    User will click the IMPORT button and first, it will check the last modified date in the form of those files(which is an unbound textbox) and compare that date with the Date Column that exist in the tbl_Import. If the Date matches it will show them a message Saying "Data cannot be imported since it already exist. If it doesnt match it will run the macro i have created to run the data import process. how can i code this? Please help. Thanks in advance.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,913
    I use only VBA:

    If Not IsNull(DLookup("[Date Column]", "tbl_Import", "[Date Column]=#" & Me.textboxname & "#")) Then
    MsgBox "Data cannot be imported since it already exists"
    Else
    'run import
    End If
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 02-29-2012, 10:13 PM
  2. Help with lookup field
    By GregF in forum Forms
    Replies: 2
    Last Post: 01-02-2012, 06:10 PM
  3. LOOKUP Field
    By tabbycat1234 in forum Forms
    Replies: 7
    Last Post: 08-14-2011, 11:21 PM
  4. Use a lookup field to influence values in another field
    By nathanrt in forum Database Design
    Replies: 3
    Last Post: 01-13-2011, 03:40 PM
  5. lookup field error
    By al jacobs in forum Access
    Replies: 1
    Last Post: 10-22-2010, 10:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums