Recent content by thydzik

  1. T

    Update/Insert Record

    why not just use the base table to track changes as well? each new record (row) will be timestamped and allow you to view previous changes.
  2. T

    adding code to a report, how do i get a current field value

    thanks for the reply. To further clarify, I have a report that has its report source modified through code. The report sources (in this case queries) doesn't have the same fields, hence there are fields on the report that may be in one query but not the other. If the field is not in the query...
  3. T

    adding code to a report, how do i get a current field value

    okay, maybe I should simplify the question I want to show a value on a report, only if the field exists in a table, how do I ahceive this?
  4. T

    adding code to a report, how do i get a current field value

    let say i have a text box in a report that brings in function someFunction that outputs a string, in someFunction, how do I get a fields value, of the correct relative row? would this function be able to be used in a module, or does it need to be part of the report code? How can I design...
  5. T

    dynamically change the property of a text box depending on value.

    Okay, I did a google search and now understand conditional formating. But what if i want to change the font size? how would I do that? EDIT: okay I solved this one myself (again) with an on event in the detail section a macro was created that changed exactly what i was after
  6. T

    dynamically change the property of a text box depending on value.

    Okay, so i construct the Control Source using the iff command? but how exactly do i set that up? I have tried something like =IIf([qty]>7,qtyText.FontBold=Yes,[qty]) but it doesn't bold the value, and also how do I seperate multiple statements?
  7. T

    dynamically change the property of a text box depending on value.

    How would I set something like this up. I have a text box named qtyText with the value [qty] how to I make this text box become bold everytime the qty value is greater than 7?
  8. T

    how to i run a macro that alters a record in a report.

    Okay. i wil answer this one myself. don't know why it wasn't working yesterday :? the control source will need to be =test([FirstName])
  9. T

    how to i run a macro that alters a record in a report.

    how to run a macro that alters a record value in a report. I think this is a pretty straight forward question. I have a report with a textbox with control source 'FirstName'. and an example macro in a module like this Public Function test(v As Variant) As Variant test = v + "test" End...
  10. T

    combine two sql queries - see example

    WORKED IT OUT! SELECT SUBGROUPS.*, combined.* FROM SUBGROUPS LEFT JOIN [SELECT TAGS.ID, ALARMS.* FROM TAGS RIGHT JOIN ALARMS ON TAGS.NAME1=ALARMS.NAME1]. AS combined ON SUBGROUPS.ID=combined.ID; thanks to this link SQL - subqueries and "parallel left joins"
  11. T

    combine two sql queries - see example

    thanks for the reply, i tried your code and it didn't seam to work, I then tried to modify it and try a lot of different things, and still couldn't make it work. SELECT SUBGROUPS.*, (SELECT TAGS.ID, ALARMS.* FROM TAGS RIGHT JOIN ALARMS ON TAGS.NAME1=ALARMS.NAME1;) AS QUERY1temp FROM SUBGROUPS...
  12. T

    combine two sql queries - see example

    bump. I thought this problem what be fairly straight forward to answer. basically how do I embed two sql queries together...
  13. T

    combine two sql queries - see example

    I have the following two queries Query1: SELECT TAGS.ID, ALARMS.* FROM TAGS RIGHT JOIN ALARMS ON TAGS.NAME1=ALARMS.NAME1; Query2: SELECT SUBGROUPS.*, Query1.* FROM SUBGROUPS LEFT JOIN Query1 ON SUBGROUPS.ID=Query1.ID; How do I combine these to make one?
  14. T

    problems with multiple relationships over multiple tables - see picture.

    okay, this how I managed to solve my problem... thought it would be useful to let people know. Firstly I did a join on the matching pairs of tables, with table1.name = table2.name then I unioned these 3 tables together. from this query I created the relationship. edit: I spoke too soon. the...
  15. T

    problems with multiple relationships over multiple tables - see picture.

    Thanks for the replies and mentioning about fields named "NAME", didn't knwo that. I will explain my situation abit more, and the reason the database is designed that way. Firstly, I don't create any of the tables myself. So the 3 different tables come from 3 different locations, I wish I...
Back
Top Bottom