Search results

  1. T

    List Box Bound Column

    Does anyone know how I can write a code to define a variable to use a different bound column in a listbox? I have a listbox which is bound to pull the code in one report, but I need it to pull the description in another report so I can concatenate two elements. I want to use the same listbox...
  2. T

    list box report and list box filter

    Sorry, can't easily do that as it's on the order of 70 meg and has confidential materials involved. :(
  3. T

    list box report and list box filter

    am not sure what you mean by breakpoint? or how to define it. With the code as defined stDocName2 = Me.FacilityUnitListBox it does correctly identify the unit highlighted when run, as it will pop up in the error message, and you can hover over the code in the DoCmd line and see the...
  4. T

    Run query to sum then desire to update table with values

    thanks, will give it a try.
  5. T

    list box report and list box filter

    yes, my bad.... filter is "FacilityUnit = '3A'" field is a text field running off a query.
  6. T

    list box report and list box filter

    sorry, that doesn't work. It pulls back a blank report, as if the filter did not recognize the FacilityUnit. Am not quite sure I understand your use of the quotes. Are they correct? :(
  7. T

    Run query to sum then desire to update table with values

    I have a DB when selected audits were initially defined for staff to enter each observation. Over time, the desire has been to change to monthly summaries. I have created new fields etc to accept the new data and new queries to pull across both data types (y/n vs. numerical).. so far so good...
  8. T

    Restrict date

    Remember, dates are defined as numerical codes in the system background, so you can use a numerical entry. Select the field on the form design, then go to properties. In the data tab, Validation rule, enter <=date() for dates equal to or prior to today. Then you can add a Validation...
  9. T

    list box report and list box filter

    I have two list boxes on a form, one to drive the report selection and one to filter the data. I have the following statement: Private Sub GraphListBox_AfterUpdate() stDocName = Me.GraphListBox stDocName2 = Me.FacilityUnitListBox DoCmd.OpenReport stDocName, [acViewPreview], ...
  10. T

    Set table default control from list box selection

    I have built a listbox which pulls several editable queries. One of the queries, "qrys_Facilities" is linked to "tbl_Facilities" table. This facility table is linked back to "tbl_Main", as the "Facility ID" field. I would like to be able to open "qrys_Facilities" from the listbox and select...
  11. T

    Charts display quarters as months sporatically

    I figured out my own problem... FYI, I changed the query expression to read as follows: Audit Quarter:Year([qry_Master]![Audit Date]) & "Q" & DatePart("q",[qry_Master]![Audit Date],0,0) It therefore reads ... 2008Q1, 2008Q2... My guess is that by including the alpha character it no...
  12. T

    Charts display quarters as months sporatically

    I have a report that is acting screwy... I have a query that drives a report that has the following expression to sort the data into quarters: Audit Quarter: DatePart("q", qry_Master![Audit Date],0,0) & "-"& Year(qry_Master![Audit Date]) As a result I get 1-2008, 2-2008, etc. This works...
  13. T

    Need a date comparison Validation equation

    I have found that this works much better by simply defining the validation fields in the main table for [Audit date], instead of either defining a macro or code. By setting the required field to yes (which I already had), and the validation expression to > date()-45 I was able to get the...
  14. T

    Need a date comparison Validation equation

    see attached jpeg. This occurs following the message box[
  15. T

    Need a date comparison Validation equation

    Private Sub Audit_Date_BeforeUpdate(Cancel As Integer) If (Audit_Date < (Date - 45)) Then MsgBox "The data you are attempting to enter exceeds the 45 day limit and cannot be accepted." Cancel = True End If End Sub That's it....
  16. T

    Need a date comparison Validation equation

    No, do I need it in the table as well? Would it function better to define only in the table and not in the entry form - as this Audit date is spread across several audits and all tie into the same field in the main table. Thanks
  17. T

    Need a date comparison Validation equation

    I made the change, but still get the validation error.
  18. T

    Need a date comparison Validation equation

    I have defined the following code: Private Sub Audit_Date_BeforeUpdate(Cancel As Integer) If (Audit_Date < (Date - 45)) Then MsgBox "The data you are attempting to enter exceeds the 45 day limit and cannot be accepted." DoCmd.CancelEvent End If End Sub JANR, Thanks...
  19. T

    Need a date comparison Validation equation

    I did mention that, as will tie into the Before Update property of the [Audit Date] field - although that is not the issue, it is the syntax of the validation statement that has me confused.
  20. T

    Is there an active way to disconnect users from my BE?

    I had the same problem. In part due to staff minimizing the application. I built a small warning form and set a macro to display this form after the timer (on open property of the form) got to 30 minutes. They could continue or exit the application. After one minute, if no responce, the...
Back
Top Bottom