Results 1 to 15 of 15
  1. #1
    Chelcone is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    24

    Text Box wont allow me to change formatting

    Hi everyone



    I have a subform that is pulling data from a query, all are pulled down in exactly the same way using an SQL query. However only the 1st and last of the values are allowing me to change the formatting options on the text box. The others are not showing any options on the format drop down in the property sheet.

    Any ideas?

    The text boxes are not locked.

    thanks

    Chelcone

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    What are the differences in the field types bound to the controls?

  3. #3
    Chelcone is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    24
    None, they are all generated with a "feldname: <<expresson>>" in a query. all identical.

  4. #4
    TG_W is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2010
    Location
    Manvel, TX
    Posts
    299
    Are you trying to change the formatting in Design View? I only ask because because you say "values" in your first post.

    Also, have you tried Conditional Formatting if you need multiple formats for different parameters?

  5. #5
    Chelcone is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    24
    Sorry i may have worded it funny, here is the screenshot of the form fields.

    Click image for larger version. 

Name:	fields.JPG 
Views:	11 
Size:	18.6 KB 
ID:	7268

    Im looking at it in design view and then choosing the formatting option from the property sheet but the drop down is blank, its only on the middle three boxes.

    I havent tried conditional formatting if im honest but they all need to be displayed as a currency format would that work in conditional formatting?

  6. #6
    TG_W is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2010
    Location
    Manvel, TX
    Posts
    299
    Thanks for the clarification.

    It goes back to RuralGuy's original question of what is the formatting in the control, i.e. how is the field formatted in the table you are getting your information? If it is Text, you will not have the option to format to Currency.

  7. #7
    Chelcone is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    24
    all the fields are based off of one control. Basicly they are percentages of a pay grade that is conditional on a tick box being true.

    for example the field TheShiftAlowance is from this formula Allowance money: ((((([hourly rate]*[contracted hours])/100)*4.98)*52.178)/12)

    [hourly rate] is currency
    [contracted hours] is number

    All of them are variations on this formula.

  8. #8
    Chelcone is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    24
    Also its not just that i cant format to currency, I cant format to anything. The dropdown is empty :S

  9. #9
    TG_W is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2010
    Location
    Manvel, TX
    Posts
    299
    Ok. If you are doing the calculation in a query, check the Property Sheet in the query and set the Currency property there.

  10. #10
    Chelcone is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    24
    I tried that as well, no effect. Even did that, deleted the field in the form and re added it to the form. Nothing.

  11. #11
    TG_W is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2010
    Location
    Manvel, TX
    Posts
    299
    What about changing it to a General Number in the query and formatting to Currency in the form?

  12. #12
    Chelcone is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    24
    I tried that as well, no effect. it doesnt matter what i change the format in the query to it just wont show anything in the format dropdown. Hopefully its nothing to do with the SQL on the final qurey that pulls the values together which is this:

    SELECT qry_core_earnings.[core Earnings] AS TheCoreEarnings, Nz([allowance Money],0) AS TheAllowanceAmount, Nz([rotation Ammount],0) AS TheRotationAmount, Nz([flex Ammount],0) AS TheFlexAmount, Nz([core Earnings],0)+Nz([allowance Money],0)+Nz([rotation Ammount],0)+Nz([flex Ammount],0) AS TheTotalAmount
    FROM ((qry_core_earnings LEFT JOIN qry_shift_allowance ON qry_core_earnings.ID = qry_shift_allowance.ID) LEFT JOIN qry_flex_ammount ON qry_core_earnings.ID = qry_flex_ammount.ID) LEFT JOIN qry_rotation_ammount ON qry_core_earnings.ID = qry_rotation_ammount.ID;

  13. #13
    TG_W is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2010
    Location
    Manvel, TX
    Posts
    299
    Is it possible to post your database? SQL looks fine, and if it is returning results, it shouldn't be the problem.

    If you cannot, I would try/check the following:

    1. Property Sheet in all queries leading to the final query.
    2. The final query as sitting in the data source for the form.
    3. Scrap the entire form and rebuild it. If I were to do this, I would rename the current form giving troubles to copy over some of the formatting or use as a guide when rebuilding the form. This has seemed to work for me on rare occassions, though.

  14. #14
    Chelcone is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2012
    Posts
    24
    Unfortunately because the database contains t pay structure i cant post it.

    I Checked the property sheets on the final query and it also wouldn't let me change the format of the middle three values on the query. I just don't get why. I have removed all formatting from the query's below the main one, i have also tried formatting them to general number. On the root query i can change the formatting to currency and it works fine. The issue seems to be with this query:

    Click image for larger version. 

Name:	qry.JPG 
Views:	8 
Size:	33.3 KB 
ID:	7289

    may need to go to the query section of the forum as it may not be a fault with the form?

  15. #15
    TG_W is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2010
    Location
    Manvel, TX
    Posts
    299
    Before going to the query side, try copying the 2 boxes you can format and changing the data source since they are already formatted to Currency. I'm not sure if that will work or why I didn't think of that before. That's probably the last attempt to fix this problem I can think of without seeing the database.

    If that doesn't work, and you don't find help in the query forums, it might be worth it to make a copy of the database and strip all the real data from it and dump some filler in so myself and others might take a look to see if we can help you more.

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

Similar Threads

  1. Replies: 1
    Last Post: 01-01-2012, 12:08 AM
  2. Replies: 18
    Last Post: 09-30-2011, 06:41 AM
  3. Text Formatting
    By BLD21 in forum Access
    Replies: 4
    Last Post: 07-22-2011, 08:25 AM
  4. Replies: 1
    Last Post: 12-14-2010, 10:03 PM
  5. Text string formatting
    By DanW in forum Forms
    Replies: 2
    Last Post: 11-02-2009, 11:11 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