Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    tylerg11 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    200

    If a value in the Preferences field on the form matches "GRA" or "Geo-T" then it will be extracted from the Preferences field and a new field called Types will be populated with that data. Almost like a cut/paste function if certain criteria are met.

  2. #17
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    So - if Preferences has 'GRA' [for example] - then 'GRA' will be put in the Types field?

  3. #18
    tylerg11 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    200
    Yes. Extracted from Preferences and populated in Types.

  4. #19
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    A query might be good for this. You ok with that?

  5. #20
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    I ran this quick query that I thought you might be able to use as a skeleton on which to flesh out your own query to build your Form on.

    Create a new query.
    Select all the fields you will need from your table [the fields that are on your Form].

    Then - in a new field in the Query Type something like this:
    Code:
     
    DupeField: IIf([Preferences] In ("GRA", "Geo-T"),[Preferences])
    If the [Preferences] field of the current record has one of the values ("GRA", "Geo-T") - then that value will be written to the new field that I named 'DupeField'.

    Once you have this query working the way you need - you can go into your Form in design view and change the 'Record Source' in the Property Sheet - Data tab. Then your Form will get all the data from the Table - Plus the duplicated values from the Preferences field in the new field 'DupeField'.

    Hope this helps.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. 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
  2. IIf using other field values in same query
    By ErikaMarie0421 in forum Queries
    Replies: 2
    Last Post: 08-03-2010, 12:21 PM
  3. Extract text from middle of a field
    By AccessNubie in forum Access
    Replies: 3
    Last Post: 11-02-2009, 01:13 PM
  4. Extract numbers from text string strored in a field.
    By khabdullah in forum Programming
    Replies: 2
    Last Post: 12-23-2007, 06:55 PM
  5. How to extract names from 1 large field
    By Tepin in forum Access
    Replies: 1
    Last Post: 12-04-2006, 01:14 PM

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