Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by handlebarry

  1. handlebarry

    DateDiff to beginning of next financial year

    Hi, Trying to work out the difference between a given date and the start of the next financial year (April 1st) AXB Addition: DateDiff("d",[LHFH_Start_Date],"THE NEXT APRIL 1st") Can someone please help - thanks
  2. handlebarry

    delete record in datasheet view

    p.s. I know there is alternate ways to allow them to delete records (e.g. double click and confirm) but i would like to understand what is going on
  3. handlebarry

    delete record in datasheet view

    Hi all having a problem with some users being unable to delete records in datasheet view I can right click a record and select delete record. However when some users right click on a record it will not stay highlighted. It "jumps" to the first record. This makes no sense to me as all users...
  4. handlebarry

    Refresh Form Data

    here is the actual query if you want to have a go but truthfully I think I'll have to stick with the command button - I've been doing this on and off for over a week and the command button is the only progress i've made! Thanks very much for the help though SELECT tblContracts.ContractCode...
  5. handlebarry

    Refresh Form Data

    The fields Day1 and ContractStatus are both on the same query as Days late. This query is the record source for FormA - (sfmNoticesOfIntention) There is also a field called contractname, double clicking on this field opens formB (frmContractNotes2) On closing formB the error appears Maybe the...
  6. handlebarry

    Refresh Form Data

    I tried that but it doesn't work Forms!frmContractMonitoring!sfmNoticesOfIntention.Form.Refresh the problem is with a field that is based on the following query field Days Late: IIf([Day1]<=14,"On Time",Format([Day1]-14,"0")) & IIf([ContractStatus]="NOE PREPARATION","NOE","") this field...
  7. handlebarry

    Refresh Form Data

    Hi, trying to refresh formA, on closing formB Placing a command button on formA (with wizard) I get the following code. DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70 What I want to do is put this code under OnClose in formB. However I'm not familiar with DoMenuItem and...
  8. handlebarry

    MsgBox okonly

    that gives me a type mismatch but it is the correct method -I think I should move the code to the form that opens thanks for the help!!!
  9. handlebarry

    MsgBox okonly

    the message box is part of an if statement, so I think the form would close even when not required here is what I have as a back up. What I really want is for "vbYes" to occur when clicking on ok (does that make sense?) Private Sub cmbONE_AfterUpdate() Dim strMessage As String...
  10. handlebarry

    MsgBox okonly

    My message box is a vbOkOnly style. All I want to is close a form when the user clicks on ok. I'm familar with message boxes in vb but I just can't seem to track down this answer! (usually use select case vbYes,vbNo etc) thanks in advance
  11. handlebarry

    Force subreport visible

    sounds like a good idea - is it possible to keep changing the record set? also what is the rs.EOF() bit do/mean? thanks barry
  12. handlebarry

    Force subreport visible

    thanks - nice idea Unfortunatly I'm exporting the report to excel and labels do not show up in excel I'll try to get a text box to appear on no data
  13. handlebarry

    Force subreport visible

    thanks but unfortunately it doesn't really help I cannot use the solution where another table is included in the query because my query does not show any records (it's just a count). Also setting Can Shrink to No has no effect. This is the example of the type of query SELECT Count([Query...
  14. handlebarry

    Force subreport visible

    Hi, I'm running a report with several subforms. Each of these subforms is based on a query that counts the instance of something. However when the query returns no data the subreport does not show. I been working with the subreports no data property: Private Sub Report_NoData(Cancel As...

Part and Inventory Search

Back
Top