Results 1 to 4 of 4

Thread: SELECT TEXT FROM 1 FIELD TO SPECIFY A VALUE

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    HOU,TX
    Posts
    3

    Post

    I'M TRYING TO ESTABLISH A PROGRESS REPORT IN ACCESS 97.
    I CREATED A DROP DOWN LIST IN 1 FIELD THAT I WANT TO READ AND ASSIGN A % COMPLETE VALUE IN ANOTHER FIELD.
    FIELD1:= STARTED
    FIELD2:= 45%

    THIS WOULD HAVE SEVERAL GRADUATION UNTIL 100% IS REACHED. CAN THIS BE DONE WITH A EXPRESSION OR IN ACTUAL VBCODE.
    THE DATABASE IS ACCESS.
    THANKS,

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827

    Post

    Err.. Not quite sure what you mean.

    You have one, numeric value in a field, and you want to find that same value as a percentage of a total value - is that right?

    Sorry, you seem to have explained it in clear words, but I don't quite understand. You said about graduations in the percentage - How will you calculate the percentages?

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    HOU,TX
    Posts
    3

    Post

    ACTUALLY I HAVE TEXT THAT DESCRIBES A WORK FUNCTION IN THE FIRST FIELD.
    I THEN ASSIGN A WEIGHTED VALUE FOR THAT FUNCTION THAT IS REPRESENTED AS A % VALUE. THERE WILL BE SEVERAL WORK FUNCTIONS THAT WILL GRADUATE UP TO 100% COMPLETE.
    IT LOOKS LIKE THIS IN EXCEL BUT I HAVE NOT BEEN ABLE TO FIX THE SAME TYPE OF FUNCTION IN ACCESS.
    =IF(F4="STARTED","45%",IF(F4="CHECK","70%"))
    ALL THE WAY TO 100%.

  4. #4
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827

    Post

    I'm a bit rusty on Excel but that looks like:

    If F4="Started" then
    value="45%"
    Else
    If F4="Check" then
    value="70%"
    End If
    End If

    Is that any help? If you were just trying to figure out the VB code for what you have in Excel then I think that's right. I expect there's equivalent Access code, but since I have always avoided using Access I wouldn't know

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width