Search results

  1. G

    How do i pass the parameter of a query in VBA?

    How do i pass the parameter of a query in VBA? My line is: cldDetail.SourceObject = "Query.qry_CDs", but the query requires a parameter (customer number).
  2. G

    'Insert Into' code

    Bat17, I love you and want to have your babies! Thanks a lot for your persistent help. I renamed my field 'DT' and everything is now tickety-boo. Thanks again.
  3. G

    'Insert Into' code

    thanks for the reply - i copied and pasted your line but it is exactly the same - no joy. RPT is numeric
  4. G

    'Insert Into' code

    nope - it dont like that either, although the suggestion makes sense. I used hashes but no joy - no error message, just nothing!
  5. G

    'Insert Into' code

    How do i insert the current date/time into a table? I'm using: RPT = Me.Combo87.Value Application.CurrentDb.Execute "INSERT INTO tbl_ReportLog (DateTime, Report) VALUES ('" & Now() & "', " & RPT & ");" The RPT bit works fine but i cannot get the other field!
  6. G

    Numbering records in a continuous form

    Sequential numbering in a continupus form based on a query - how?
  7. G

    Numbering entries in a report

    ...and in a form? How do i do the same thing in a continuous form?
  8. G

    Delete from subform (simple)

    thanks thanks - quite right, it does work.
  9. G

    Delete from subform (simple)

    I have a subform that i have added a button that runs a delete query. The query selects the record to delete based on the subform record ID. If i open the subform on its own it works fine, but from the parent form it acts as a parameter query, asking for the ID. So it's obviously an addressing...
  10. G

    Simple 'Insert Into'

    Er... one last thing - how do i supppress the confirmation message?
  11. G

    Simple 'Insert Into'

    Thanks a lot for your reply - i have altered my work as you recommend.
  12. G

    Simple 'Insert Into'

    Can someone help me with this syntax problem... dim D$ D=Date Insert INTO tbl_AutomatedEmail VALUES (D); <--access dont like this! the table in question only has one text field to hold the inserted date.
  13. G

    If query returns no records...

    Tried that... In the 'On No Data' event i put 'msgbox "no Data"' just to try it and it dodn't show - any idea why? What about queries and forms that have no data?
  14. G

    If query returns no records...

    ... then i'd like to catch that, display a message to that effect and cancel the report or form or whatever i'm trying to open. Does anyone have some examples of catching zero records returned queries that i could utilise for my own application?
  15. G

    Reopen a form on a particular record

    I have users entering data into a form that contains two linked subforms. They want to be able to go back into a particular record as and when they need to in order to continue adding data but I dont want them to have to navigate all the records. How do I reopen the form for data entry at the...
  16. G

    Still can't get all fields to show...

    see attached .jpg
  17. G

    Still can't get all fields to show...

    Thanks for the reply. I am still missing something though. I altered the query (by typing the 'outer' word in sql view - is there another way of doing this?) but get exactly the same results! The sql now reads: SELECT tblAreas.Area, Count(tblHeader.Date) AS CountOfDate FROM tblAreas LEFT OUTER...
  18. G

    Show all fields, even zeros (newbie)

    Er, I'm still missing something... Thanks for the reply. I am still missing something though. I altered the query (by typing the 'outer' word in sql view - is there another way of doing this?) but get exactly the same results! The sql now reads: SELECT tblAreas.Area, Count(tblHeader.Date) AS...
  19. G

    Show all fields, even zeros (newbie)

    This is probably really simple... I have two tables, one has the work areas (tblAreas), the other has info about what each area produced (tblHeader). They are linked 1 (areas) to many. I want to write a query that lists all the areas, and a count (not sum) of their data entries, even if that...
  20. G

    Show records even if they're not there! (Newbie)

    I have one table that has area names, area1, area2,... (the 'one' side of a join) and another table that holds records related to a specific area (the multiple side of the join). I want a report that lists the area as a heading, then all the records related to the area, then the next area, and...
Back
Top Bottom