Recent content by sponge

  1. S

    Using optional criteria for a subform query

    Hi, Is there a simple way to add optional criteria in a query for a subform? Basically, what I'm trying to do is have a number of comboboxes in the parent form that indicate what records are shown in the subform (these records could then be added and/or deleted). I would like to be able to have...
  2. S

    Cancelling a mask edit with a command button

    Anyone have any ideas? :)
  3. S

    Cancelling a mask edit with a command button

    Hi, I have a form with a text box using a mask edit. How would I go about "exiting" the form by pressing on a button? DoCmd.Close will not override any incorrect entries in the textbox - Is there a way to "undo" anything in the textbox so that I can exit the form after clicking on the command...
  4. S

    Summing fields in a record

    Hi, Not sure if this is possible (sounds simple hopefully) but I was wondering if there was a way to sum certain fields in a record on a continuous form. E.g. Field1 and Field2 in record 1. Is it something simple like summing columns, i.e. Sum(Field1)? Any help would be much appreciated.
  5. S

    Getting the actual date from a crosstab column heading

    Hi, I have a crosstab query that groups by week to obtain columns for monday to sunday. Is there a way to obtain the actual dates that these columns represent? Any help would be much appreciated.
  6. S

    Period based on week number

    Hi, I've got a combo box that uses DatePart("ww",[Date],2) AS WkNum to obtain the week number. How would I obtain the start date and the end date from just the week number? Is it also possible to change WkNum to the week number of the selected month? E.g. if December is selected, instead of...
  7. S

    Set default value to Monday of current week

    Hi, I'm wondering how to set the default value of a combo box to the Monday of the current week (it's grabbing a date field). Many thanks in advance.
  8. S

    Check for values from subform

    It's a sum based on conditions of two comboboxes. Both of these combo boxes filter the records shown in the continuous form. I'm summing a field of what's shown in the form, based on the combo box values. SELECT (Sum([tblData].[Value])) AS Total FROM tblData HAVING...
  9. S

    Report using all entries in a combobox

    Anyone have any ideas? :(
  10. S

    Check for values from subform

    Hi, Thanks for the response.. It's still not working - I tried something to that effect earlier (except I didn't use the set focus thingy)... The listbox is summing up a field in the continuous form using a query - could that be why this isn't working? Would it work if I referenced the query...
  11. S

    Check for values from subform

    Hi, I want to check a listbox value (the listbox is in the parent form) after updating a subform field to see if the listbox value is greater than 8.5 after updating. If it is, I want an error message to pop up and I want the field that the user is on cleared. I think I might be referencing...
  12. S

    Report using all entries in a combobox

    Hi, Thanks for the reply. The report I have is parameter driven - I already use Docmd.OpenReport "Your Report Name" on the OnClick event for the report. It follows the same sort of schema as the crosstab report sample (under creating advanced reports) in the Microsoft Developer Solutions...
  13. S

    Report using all entries in a combobox

    Hi, I currently have a report that is driven by a combobox. I was wondering if there's a simple way to create a report for each of the entries in the combobox through a "All" combobox entry. (i.e. instead of selecting each entry, one by one) Any help would be much appreciated.
  14. S

    totals on the form

    KenHigg, Just want I was looking for! Works perfectly. Thanks!
  15. S

    Choose higher value

    Hi, Is there a way to automatically choose a value such as 0 if the expression goes to a negative number? E.g. I have a query that will subtract a numeric field from 10. If 10 - [numericfield] is less than 0, then I only want it to display 0. Otherwise, it can display the value if it is...
Back
Top Bottom