Search results

  1. D

    query criteria needs to be a column in another query.

    I'll have to double check, is most likely what has happened. At present I don't have access to the database to check. Last day of work and it's a cleanup day. I'll follow up on this and reply back. It's always good to get coding clean and streamlined.
  2. D

    query criteria needs to be a column in another query.

    I need to clarify, due to so unavoidable circumstances, I'm writing the database in 2007, for a 2003 system. While this is quicker, for some reason it does not appear to work when database is loaded on the 2003 system. as this is for a government institution, there may be some specific quirks...
  3. D

    query criteria needs to be a column in another query.

    Worked it out in the end: "ID1" is the key field in the query "mastertable fortnight" is the query based on the table "Mastertable" In (SELECT [ID1] FROM [mastertable fortnight]) This filters all records in the query that match the numeric value of ID1.
  4. D

    query criteria needs to be a column in another query.

    Hi, Trying to apply a column in a query as the criteria in another query. is there an expression i can use such as: =[column]![query]
  5. D

    getting a value from a query - that is not the control source.

    Thanks - have resorted to a subreport. it works, and will investigate dlookup shortly.
  6. D

    getting a value from a query - that is not the control source.

    Hi, I'm trying to get a conglomorate report together that combines data from a number of queries, tables and crosstabs. currently all works except my attempt to programatically reference a field in a query. Said query has only one line as it is a summary query. my current code is this: The...
  7. D

    VBA to grab value of first record from subquery.

    Thanks - owe you one. Drop me a line if you ever need assistance with circuit design, model rocketry, firearms, laser engraving or pretty much anything else that's dangerous and unusual.
  8. D

    Just reading a few visitor messages - Isn't just a joy when you know how to fix things? Everyone...

    Just reading a few visitor messages - Isn't just a joy when you know how to fix things? Everyone wants you to fix everything and for free. Incidentally I owe you one. Let me know if you need assistance with anything electronic (circuit design etc)
  9. D

    VBA to grab value of first record from subquery.

    No, linking won't work. The database will be on a server. Files must stay with the database. For both location purposes and due to privacy regulations. I am making reference to parts of 3 different databases here, but the one that requires the OLE field if for a government institution. I am...
  10. D

    VBA to grab value of first record from subquery.

    No not for images, for varied types of documents that must be associated with a job record. These could be anything from PDF to xls. There really isnt any other way to get around the requirement. In case I am unclear, i was referring to an OLE type column in a table.
  11. D

    VBA to grab value of first record from subquery.

    Not a prob, Yeah I have difficulty finding time to design it myself. it's 23mb when compacted now, and there is just a few test records in there. could also be the bound OLE objects in there too.
  12. D

    VBA to grab value of first record from subquery.

    Labels have advantages of their own, they also behave differently on reports. much of my code will be cut and pasted to a report at some stage, and I like to minimize my work in modifying procedures. It's difficult to explain everything I'm working, as it seems to have sparked your interest...
  13. D

    VBA to grab value of first record from subquery.

    I will be doing other things with the variable further down the code. this is kind of mashing two steps together in preparation for some juggling further along. For instance I have a few labels that I want to add the string into, EG: label1.caption = staffname & " has taken " & tally & "...
  14. D

    Useful code I have written - Google and whitepages search.

    I am aware, however for compatibility sake, and as this code was used in a 2003 database, it has some issues with the .value statement at times. The other factor behind this, as the client, who's database this was used in, likes to have control, and likes to see the focus change between boxes...
  15. D

    VBA to grab value of first record from subquery.

    Just an addition, ran into an error when the subform had no records, so I added an error handler like so: Dim Tally As String If Me!leavetakenQuerysubform.Form.Recordset.RecordCount = 0 Then Else Tally = Me!leavetakenQuerysubform.Form!SumOfHours.Value leavedays.Value = Tally End If
  16. D

    VBA to grab value of first record from subquery.

    Got it working: Dim message As String message = Me!leavetakenQuerysubform.Form!SumOfHours.Value MsgBox message This page was very useful: http://www.mvps.org/access/forms/frm0031.htm
  17. D

    VBA to grab value of first record from subquery.

    I may need to clarify a little more. I have two tables. for the purposes of this we will call them "Maintable" and "SummaryTable" Maintable has a form - that has a subform (showing summarytable - one to many relationship) and also a subreport. The subreport is a summary query of summarytable...
  18. D

    Useful code I have written - Google and whitepages search.

    So I have decided to contribute a few of the more useful snippets of code I have put together in some of the better databases I have written. I hope you guys find this useful: "Get Directions in google maps from address fields": You will need to change field names to suit. This can cope with...
  19. D

    VBA to grab value of first record from subquery.

    Hi, currently working on a few databases at present. I have a conundrum I would like to resolve for all of them. My initial issues of trying to use a crosstab as a subquery have been solved by just using a simple query using the summary feature provided by the query wizard. So now, I have a...
  20. D

    Cross Tab Query as a subform

    Just figured out my problem - for anyone that finds this trough google like I did. Make a SIMPLE QUERY, using the wizard in access 2007, and choose the summary option. this will generate counted totals similar to a crosstab that can be used as a subform/subquery without the need to define...
Back
Top Bottom