Results 1 to 4 of 4
  1. #1
    TP takamiya is offline Novice
    Windows XP Access 2000
    Join Date
    Sep 2010
    Posts
    5

    confused with append method

    here it goes,

    i have tabcontrol with 3 page in it. every page consists of 5 text boxes
    4 boxes are set visible to false, not until the first box meet the certain criteria and the second box will be visible, when the 2nd box meet the 2nd criteria the box will be visible as well and so on..
    the second and third page are the same with page 1. they have 5 boxes each tabpage and same condition as page1.

    now, my question is...

    how can i append the records in a table in just 1 field without blanks..

    let say, on page 1
    textbox 1 = 10
    textbox 2 = 15
    textbox 3 = 20
    textbox 4 not visible
    textbox 5 not visible
    on page 2
    textbox 1 = 5
    textbox 2 = 18


    textbox 3 not visible
    textbox 4 not visible
    textbox 5 not visible
    on page 3
    textbox 1 = 3
    textbox 2 not visible
    textbox 3 not visible
    textbox 4 not visible
    textbox 5 not visible

    the table will appears like this

    Table sample
    field 1
    10
    15
    20
    5
    18
    3

    guys i really need your help.
    any suggestions or comments are appreciated
    tnx so much

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    do you know some VBA? It will realize you goal.

  3. #3
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    indeed...basic will help. what you need to do is:

    *loop through the textboxes on your form and check for visibility
    *is they are visible, append a new record to your table with the FIELD = textbox value

    you can append your records by using a recordset OR by simply issuing a currentdb.execute command everytime a value needs to be thrown into the table.

  4. #4
    TP takamiya is offline Novice
    Windows XP Access 2000
    Join Date
    Sep 2010
    Posts
    5
    thanks ajetrumpet,

    i think that is the answer.

    thanks for the reply too weekend00
    Last edited by TP takamiya; 09-22-2010 at 07:05 PM. Reason: i appreciate the effort to all the responses

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

Similar Threads

  1. Confused about lookup in table v form
    By jray7000 in forum Access
    Replies: 3
    Last Post: 08-23-2010, 03:36 PM
  2. Replies: 4
    Last Post: 08-16-2010, 10:46 AM
  3. Which method is better?
    By undrcvr in forum Database Design
    Replies: 3
    Last Post: 05-24-2010, 12:46 PM
  4. Append query won't append
    By yelkenli in forum Queries
    Replies: 5
    Last Post: 02-12-2010, 11:19 AM
  5. Filter by Form? Confused...
    By andmunn in forum Forms
    Replies: 0
    Last Post: 01-14-2010, 01:30 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