Search results

  1. S

    Help with Combo Boxes

    Midge You forgot to attach the .mdb! shay
  2. S

    help with VBA in Access 2000

    Midge Had you not assigned the calculation to your Age field/text-box? Do you still have a problem? shay
  3. S

    help with VBA in Access 2000

    Let's take a step back. The "yyyy" is the interval argument for the Datediff function. It tells the function to work out the difference between the dates in years (rather than in months or days etc). Therefore, as I understand it, it has nothing to do with the way you state the dates when...
  4. S

    Restricting records

    One solution is to have an integer field CourseNo in your 'many' table with validation rule '<=5'. However, if the 'no more than 5 courses' rule only applies to some students, you'll probably need to use code to do what you want. hth shay :cool:
  5. S

    help with VBA in Access 2000

    What does the error message say? I'm running Access97 here and the code I sent works for me. shay
  6. S

    Help Needed With FindFirst - Multiple String Critera

    Try... strCriteria = "[NewProp] = True And [FinCoID] = 'MyBank'" hth shay :cool:
  7. S

    help with VBA in Access 2000

    This should do it ... DateDiff("yyyy", Me.DateofBirth, #9/1/02#) - IIf((Month(Me.DateofBirth) >= 9 And Day(Me.DateofBirth) > 1), 1, 0) hth shay :cool:
  8. S

    Yes/No field query

    Hi Subspaid is a Yes/No field not a Text field so it will never equal the text string "No". This is what you want... SELECT managersname,team,fullname,address,telephoneno,sub spaid FROM Players WHERE managersname="Joe Bloggs" AND subspaid=No; hth shay :cool:
  9. S

    Trouble setting up ~Gross - Deductions = Net~

    If you just want to subtract the total expenses from the sales total, this should do it... NetTotal = DSum("[Sales]", "Gross Sales") - DSum("[Expenses]", "Deductions") shay :cool:
  10. S

    Check boxes

    Not sure I understand why you want to do this but the following code should do it for you. It assumes the text is being written to BoxLocation in table "Check box info tbl". Private Sub chkTL_Click() CheckText = "Top Left" ProcessInfo chkTL, CheckText End Sub Private Sub...
  11. S

    Help with dates?

    I'm not sure that the PCs regional setting is important. I would recommend using an input mask so users are clear how they should input the date and then format your dates to US format for all date functions. I'm sure someone will correct me if I'm wrong! shay :cool:
  12. S

    Pull up info in form using an ID

    That's fine - you don't have to display the extra info in the combo box. Just make the width of the additional columns zero. Then all the user will see is the customer ID but the customer name and address will be there available for you to use. shay :cool:
  13. S

    VBA querie

    Not sure that I fully understand how you plan to implement your scheme but this might help ... Me.NumFullPallets = Int(Me.ReqdQuantity/ Me.MaxPerPallet) Me.NumOnLastPallet= Me.ReqdQuantity- (Me.NumFullPallets* Me.MaxPerPallet) shay :cool:
  14. S

    Pull up info in form using an ID

    Hi You could include the customers name and details with the ID in a combo box. After a selection is made set me.txtCustomer = "You are " & me.cmbCustomer(1) & " from " me.cmbCustomer(2) & "." In this example, the customer name is in column 2 of the combo box and the address is in column 3...
  15. S

    Help with dates?

    When using date functions, format your dd/mm/yy date like this format(YourDate, "mm/dd/yy") shay
  16. S

    Update multiple records in a form

    Possible solution.. Run a query to do the calcs and then refresh the form to show the calculated values. hth shay
  17. S

    Can this be done?

    Hi Can you explain a bit more about table 2. What's col1, col2, col3, col4? shay
  18. S

    Option Buttons

    Yes you can! Put your option buttons into an option group and set the option group's control source to the field you want to store its value in. hth shay :cool:
  19. S

    stopping fields in certain records being edited

    Hi Not sure from your post if the date and time are being set automatically. If not set the date & time fields as follows: If IsNull(Me.txtDate) Then Me.txtDate= Date If IsNull(Me.txtTime) Then Me.txtTime= Time Code could go in the form's OnCurrent event. hth shay :cool:
  20. S

    creating a button that updates a form

    Your Inquiries table needs a field to store the associated Payment number and the text box that will display the assigned payment number must be bound to this field. Then the line Me.txtPaymentNo = DFirst("[PaymentNo]", "Payment Numbers tbl", "[Assigned]=No") will do what you want ie "give...
Back
Top Bottom