Search results

  1. S

    how to display nearest date to expiry on form in text box

    right I have tried putting the text on the subform still code doesn't work if I have expiry date 01/04/14 and then make this true the textbox goes blank and doesn't so the next due I even try removing the null no different:confused: cheers shane
  2. S

    how to display nearest date to expiry on form in text box

    yes your right both fields are on my subform yes id is the data type the "link" between the forms thanks shane
  3. S

    how to display nearest date to expiry on form in text box

    sorry typo! error:banghead: =IIf([ExCourse]= False, DMin("Expirydate","tblcourses","[ID]=" & [empID]), Null) right that's not working as my text box that display's next due course date is on the main form frmemployee so there no reference I 'm guessing for excourse :confused: thanks...
  4. S

    how to display nearest date to expiry on form in text box

    hi vbainet right I have tried =IIf([Forms]![frmlcourses subform]![ExCourse]=False,DMin("Expirydate","tblcourses","[ID]=" & [ID])) but with no success:( thanks for the help shane
  5. S

    how to display nearest date to expiry on form in text box

    hi all right.. I have main form call frmemployee and subform call frmlcourse subform the main form hold's employee information e.g. first name addresss the sub form hold's all the training courses that the employee has been on right..... now my problem I have a text box called...
  6. S

    how to make label visible depending on text box value

    It's exactly like that and working :confused: Oh well Thanks Shane
  7. S

    how to make label visible depending on text box value

    hi , Vbaineti god knows what I was going on about hadn't had much sleep!!!! after reading your last post again!! today and a little more awake and fresh eyed :) I got the logic behind it so I removed daysover field and done it by unbound text box using control with...
  8. S

    how to make label visible depending on text box value

    THANKS!!!!! Vbainet worked a Treat:D:D only one more question how can I make the dayover Textbox invisible if the expiry date has passed and only on the records that have passed cheers shane
  9. S

    how to make label visible depending on text box value

    hi all right .... I have a report that displays on a continuous style report. What courses the employee have been on and when they expire right I have field call expirydate and another call dayover showing the number of days till that course has expired also I have made a label called...
  10. S

    how to display next medical due on a subform

    thanks Gina didnt know i could use the dmax function in a text box :) something new i have learnt :D THANKS AGAIN GINA!!!!! YOU STAR !!!!!:D:D:D:D:D:D Shane
  11. S

    how to display next medical due on a subform

    hi all right.... I have a form call "frmemployee" that holds employee's details. I have page tabs with sub forms on and the one I'm now concentrating on now at the moment is a Sub form called "medical Sub form" this holds data regarding the last medical the employee has had on continuous...
  12. S

    how to add criteria using strwhere

    right I have found what was wrong I was running my combo box from a table but when I was selecting a year it must of been taking its record ID not the Year Field value so I change it to field list box and boom! it worked!!! Thanks Gina YET AGAIN!!!! YOU LEGEND!!!!:D:) shane
  13. S

    how to add criteria using strwhere

    right I change the combo name to combo3 for temporally and it work's but didn't export any records it was blank but there is definably record's in that criteria:confused::confused: I set my combo box to =2014 If [Forms]![frmexportexcel]![Combo3] <> "" Then strWhere = strWhere &...
  14. S

    how to add criteria using strwhere

    thanks Gina still get Microsoft access can find field 'cboexportyear' reference in your expression and its highlighting this row If [Forms]![frmexportexcel]![cboexportyear] <> "" Then thanks shane
  15. S

    how to add criteria using strwhere

    sorry gina im confused where to put this now :banghead::confused: strWhere = strWhere & "([tblExposure.Dateexposure] = " & [Forms]![frmexportexcel]![cboexportyear] & ") AND " thanks shane
  16. S

    how to add criteria using strwhere

    I have made sample of what I have done thanks shane
  17. S

    how to add criteria using strwhere

    right tblExposure.Dateexposure holds the date for each record im dbs As DAO.Database Dim qryDef As DAO.QueryDef Dim strWhere As String Dim lngLen As Long Set dbs = CurrentDb Dim strSQL As String strSQL = "SELECT tblemployee.Id, tblExposure.Dateexposure, [Valuef/cm]*[Durationofexposure] AS...
  18. S

    how to add criteria using strwhere

    hi Gina good idea!!! so if make a form call frmexportexcel and combo box with years called cboexportyear so what would the where string be :confused: thanks shane
  19. S

    how to add criteria using strwhere

    how to add another strwhere criteria hi all I have some code that exports data to excel overwrites old data on the same sheet every time call "exspose Data" but I now need to add another string to only export current year data how it works it creates a temp query then exports to excel and...
  20. S

    Output to PDF

    hi irade92 you could try this myDir = "FILE PATH\" myFile1 = [TEXT BOX NAME ] & ".PDF" DoCmd.OutputTo acReport, "Report Name", acFormatPDF, myDir & myFile1 hope this helps shane
Back
Top Bottom