User Profile

Collapse

Profile Sidebar

Collapse
VALIS
VALIS
Last Activity: Nov 6 '06, 01:49 PM
Joined: Oct 17 '06
Location: Manchester, UK
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Have you changed the SCALE property in the general properties tab?
    It needs to e set to 3 to give 3 decimal places....
    See more | Go to post

    Leave a comment:


  • VALIS
    replied to Max function
    A couple of questions
    If two rounds have the same result for the rebate do you need to record this in the result?
    Are there going to be move rounds?

    If there are only 3 you could use a nested IIF statement to get the result in a Query.

    Code:
    MaxRebate:IIF(AND([Round 1]>[Round 2],[Round 1]>[Round 3]),[Round 1],IIF(AND(([Round 2]>[Round 1],[Round 2]>[Round 3]),[Round 2],[Round 3])
    Any...
    See more | Go to post

    Leave a comment:


  • You won't need to write any queries.
    If all the tables have 8 fields all you need to do is change the record source of the controls to reflect the fields of the table selected.

    Dim ctl as control


    For Each ctl in Myfrm.Controls...
    See more | Go to post

    Leave a comment:


  • VALIS
    replied to Max date between two dates
    Julie

    There needs to be a common field - PatientID?

    Your report needs the following as it's control source

    Code:
    SELECT [QryPatients].PatientID, Max(QryPatientResults.TO) AS MaxOfTO1
    FROM [QryPatientsResults] RIGHT JOIN QryPatient ON [QryPatientResults].PatientID = [QryPatients].PatientID
    WHERE (((QryPatientResults.DateVisit)>Date1 And (QryPatientResults.DateVisit)<Date2))
    GROUP BY
    ...
    See more | Go to post

    Leave a comment:


  • Do the other fields update if you tab away from the list box?
    (The form will only update once the list box loses focus unless you have some event driven code behind it.)...
    See more | Go to post

    Leave a comment:


  • Mel,

    Are the 8 fields common to all the tables?
    If not, are there always 8 fields in a table?

    If so you could have a generic form with 8 fields.
    Your code could change the controlsource property of the form depending on the selection.
    If the field names are different for each table you will need to right some code looping through the controls collection to change the control source of each cont...
    See more | Go to post

    Leave a comment:


  • VALIS
    replied to Forms
    Is there a date field in your table?
    If you're looking to show a weekly total you could create a control with something like the following as the control source



    This would display a last 7 days total...
    See more | Go to post

    Leave a comment:


  • VALIS
    replied to Tab movement between fields in a form
    Can you be more specific. Do you mean the tab order for instance? If you do then all you need to do is right-click the form in design mode, select "tab order" and you can re-order all your controls....
    See more | Go to post

    Leave a comment:


  • VALIS
    replied to Form Help
    Is there any coding associated with your form? ( I assume there is since you mention you're using a LABEL to input ) If your code deals with searching for the typed entry in the table it might need a requery statement....
    See more | Go to post

    Leave a comment:


  • VALIS
    replied to Query criteria as function
    Hi Sandro997,
    Is SetUserGroupCri teria used anywhere else?
    If it isn't it might easier to refine this than mess around re-formatting the text string. Could you paste the code for the function SetUserGroupCri teria()?

    Thx...
    See more | Go to post

    Leave a comment:


  • Agreed. I was dealing with a problem that didn't exist. The problem was the test not the code. Doh!...
    See more | Go to post

    Leave a comment:


  • Hi,

    This might not be very orthodox declaring varBirthDate as String would avoid the ambiguity with the date format....
    See more | Go to post

    Leave a comment:


  • VALIS
    replied to Form Help
    Do you save the table and refresh the query before searching for this new record? If the form or underlying query behind the control isn't refreshed access won't register the new entry....
    See more | Go to post

    Leave a comment:


  • VALIS
    replied to list box probs
    Doesn't Me refer to the current object executed?
    If so you'd be opening and closing the form almost instantaneously ?
    What happens if you step through the code?...
    See more | Go to post

    Leave a comment:


  • VALIS
    replied to Form Help
    j0rdanf1,
    Yes it is.

    How are you searching for the user id? Are you using a combo box?
    If so you could use the "On Not In List" event to update your listbox.
    This will update the underlying table being used as the recordsource.
    There's an example in the Access Help files for the NotInList Event.
    Or you could send more detail?

    Regards,
    VALIS...
    See more | Go to post

    Leave a comment:


  • VALIS
    replied to The Function PI()
    You might need to load an add-in msowcf.dll.
    Can you use ASIN() ?
    If this works then 2*ASIN(1) = Pi...
    See more | Go to post

    Leave a comment:


  • VALIS
    replied to Query Question
    Try typing a version of the following in the SQL view of the query.
    You need to substitute your table name and field name for tbl & Field.

    SELECT tbl.*
    FROM tbl
    WHERE (((tbl.Field) Is Null)) OR (((tbl.Field)=" 0"));...
    See more | Go to post

    Leave a comment:


  • Try the YEARFRAC function ( See Access Help )

    YEARFRAC
    Calculates the fraction of the year represented by the number of whole days between two dates.

    If this function returns the #NAME? error value, you may need to install msowcf.dll.

    Syntax

    YEARFRAC(start_ date,end_date,b asis)

    Start_date is a date that represents the first (or start) date.

    End_date...
    See more | Go to post

    Leave a comment:


  • How about using =Ceiling((now()-#01/11/05#)/7,1)...
    See more | Go to post

    Leave a comment:


  • Try typing the following formula in the control source
    =Now()-Weekday(Now(),1 )-2
    This should give you last Sundays date....
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...