Results 1 to 9 of 9
  1. #1
    DaveE is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    7

    Smile Save form at runtime

    Hi Programmers
    I want my database users (in different divisions of the company) to be able to change the default text of an unbound label that resides on the database menu.
    That is, Click a control and input some text that will permanently change the text on the opening form.
    It is pretty straight forward, but I am not able to save the new form structure.


    Is it possible, or do I need to store the text in a table?
    Any assistance is greatly appreciated
    Thanks, Dave

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    what for? what is the purpose?

  3. #3
    DaveE is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    7
    Hi Adam
    The database will be populated differently by each department.
    I was hoping that a title would avoid confusion for people with access rights to more than one area.

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by DaveE View Post
    Hi Adam
    The database will be populated differently by each department.
    I was hoping that a title would avoid confusion for people with access rights to more than one area.
    you said 'change the text on the opening form'. what text? a label? the form title/caption? the database title? you can do all of this, but depending on which one you want to do, the complexity changes.

  5. #5
    DaveE is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    7
    Hi Adam
    I was thinking an unbound label or text box on the opening form that can be changed easily by individuals to hold their department name.

  6. #6
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by DaveE View Post
    Hi Adam
    I was thinking an unbound label or text box on the opening form that can be changed easily by individuals to hold their department name.
    either that, or what you can do, what we do sometimes, is ask for an input upon startup, store that in a table called 'owner' and set the form labels or headers to lookup those values when they are opened. for a textbox, say you can enter the following as the cs:
    Code:
    =dlookup("field", "ownertable")

  7. #7
    DaveE is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    7
    Thanks, I appreciate the advice.
    All I was asking was (see original post) is it possible to save the structure without creating another table.

  8. #8
    michaeljohnh is offline More Human than Human
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    61
    Quote Originally Posted by DaveE View Post
    Thanks, I appreciate the advice.
    All I was asking was (see original post) is it possible to save the structure without creating another table.
    Can VB code be used to change the default value of the label/textbox? That sounds like what youre describing. If it can than that might do the trick.

  9. #9
    DaveE is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    7
    Yes, that is all I was attempting to do.
    Permanently change the default setting of a label/text box using code.
    It is easy to change, but I was not able to save the form to retain the change.

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

Similar Threads

  1. form won't save and close
    By Philislost in forum Access
    Replies: 6
    Last Post: 10-08-2010, 01:47 PM
  2. save last record in table through a form
    By ajetrumpet in forum Forms
    Replies: 3
    Last Post: 09-09-2010, 08:53 AM
  3. Form will not save after adding a field
    By avarusbrightfyre in forum Forms
    Replies: 1
    Last Post: 08-20-2010, 06:53 AM
  4. Save and Go to another form - simple yes?
    By durstlaw in forum Forms
    Replies: 1
    Last Post: 12-15-2009, 12:46 AM
  5. Form requesting to save changes
    By stevo2820 in forum Forms
    Replies: 0
    Last Post: 07-30-2007, 07:41 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