Results 1 to 4 of 4
  1. #1
    roofbid is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Dec 2010
    Posts
    2

    Form Field Default Setting

    I have a table "BidDetails" in an Access 2010 Web db the record source bound to a form "BidDetails" the fiefds are

    ID = AutoNumber
    BidId = Number
    Area = text


    ItemID = Number

    Everytime I add a new record I want the new record field "Area" default value to be the value in the previous record "Area" field.


    Thanks
    RoofBid

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    in form_current event:
    Private Sub Form_Current()
    If Me.newcord Then
    area = DLookup("area", "BidDetails", "id=" & DMax("id", "bidDetails"))
    End If
    End Sub

  3. #3
    roofbid is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Dec 2010
    Posts
    2
    Quote Originally Posted by weekend00 View Post
    in form_current event:
    Private Sub Form_Current()
    If Me.newcord Then
    area = DLookup("area", "BidDetails", "id=" & DMax("id", "bidDetails"))
    End If
    End Sub
    Thanks for the reply. Will that work in Access 2010 web db?

  4. #4
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    Not sure, I've never touched Access 2010

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

Similar Threads

  1. Replies: 1
    Last Post: 11-01-2010, 06:59 PM
  2. Setting the Default Value and Proper Case Example
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 08-27-2010, 07:43 PM
  3. Set the default field for form veiw
    By amer in forum Database Design
    Replies: 2
    Last Post: 06-16-2010, 11:32 AM
  4. Setting default values in columns
    By crownedzero in forum Programming
    Replies: 0
    Last Post: 06-17-2009, 06:45 AM
  5. Setting default Unicode Compression when import from Excel
    By AndrewAfresh in forum Import/Export Data
    Replies: 0
    Last Post: 03-16-2009, 04:14 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