Results 1 to 2 of 2
  1. #1
    townguy is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2011
    Posts
    4

    How To Write Vb Code For This?

    Hi Guys/Experts..

    Currenly i am having a testing application.:


    Database coloums : ID, Createddate, TimesheetDate, TagDate
    Form fields : Createddate(not visible, auto today date), Timesheetdate(need user input), tagDate(not visible, for later use), radioButton(user choose New or Add Record) option.

    What i want is, when user fill up "TimesheetDate" in the form and if the the "timesheetDate" already exist in the database, than the system automatically store today's "CreatedDate" into the original record's "TagDate".

    Looking for VB code something like:

    Code:
    If Me!Timesheetdate = [TimeSheetTable].[TimeSheetCoulum] AND Me!radioButton="AddRecord"
    Than update [Timesheet].[TagDate] as Me!Createdate]
    Included the created databse and the interface.
    Kindly need all of you help to come up with such a code.
    Thank you

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,970
    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. Trying to write a simplet vba code
    By bopsgtir in forum Programming
    Replies: 6
    Last Post: 03-12-2011, 08:52 AM
  2. Write Code to Navigate from Subform to Subform
    By Swilliams987 in forum Programming
    Replies: 22
    Last Post: 02-04-2011, 11:30 AM
  3. How would I write this query?
    By tigers in forum Queries
    Replies: 1
    Last Post: 02-08-2010, 08:29 AM
  4. ADO.Recordset - Write
    By Marvin in forum Programming
    Replies: 0
    Last Post: 07-17-2009, 07:56 AM
  5. write a query how to???
    By flamingo in forum Queries
    Replies: 0
    Last Post: 01-13-2009, 03:57 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