Recent content by Television

  1. T

    Recordset loop takes value only from first record

    Thanks! Changed to this tempweigh = rst.Fields("MaterialWeight") and it works now. Television
  2. T

    Recordset loop takes value only from first record

    Greetings again! I have a following problem: I have a form in continuous mode. Users are supposed to filter data in it to their liking using inbuild filters in Access. After that there is a button that should calculate total weights in filtered records (at this point, I add more calculations...
  3. T

    Can wherecondition in Docmd.OpenForm be a boolean value?

    Works now! Though I am curious why this code works but above one doesn't. Whats the difference between those two? Thanks again! Television
  4. T

    Can wherecondition in Docmd.OpenForm be a boolean value?

    Unfortunately this code returns also a syntax error :(. Any ideas for correct syntax? Television
  5. T

    Can wherecondition in Docmd.OpenForm be a boolean value?

    Greetings again! One quick question: Can in function Docmd.OpenForm its wherecondition be a boolean value (true/false)? I try to make button to open a new form on a click and show only records that are True in certain yes/no field. I have tried several solutions but nothing works then I...
  6. T

    DLookup in custom function not returning values

    You are probably right about normalization. Total pottery weights are located in their find unit table and finds are on their own table. Both table contains additional info. I probably should have put pottery weights to separate table in a manner you suggested and linked it to either unit table...
  7. T

    DLookup in custom function not returning values

    Unfortunately, that is not possible due to structure of out data :( (too long to explain). Fortunately our data amount is not overly large, so this DLookup function doesn't slow down query, where I use it. Thanks for concern thought. Television
  8. T

    DLookup in custom function not returning values

    That did it! Thanks again Eugin! Television
  9. T

    DLookup in custom function not returning values

    Greetings! I made a custom function to look certain value from table based on couple of criterias that it gets from query where I want to use it. Function's code is below: Public Function PotteryWeights(strLocusID As Long, nrPotSubID As Long) As Variant Dim priSubID As Long Dim...
  10. T

    Applying quick filter in main form causes data to not show in subform??

    This is getting stranger all the time. First I work couple hours with this problem creating new version of said form, trying different things and nothing works. Then I leave this problem alone and do other stuff and now my form is working as it should be. I really don't get it, but I guess this...
  11. T

    Applying quick filter in main form causes data to not show in subform??

    By using "Filter" option in toolbar. Yes, they are defined. Thanks! Television
  12. T

    Applying quick filter in main form causes data to not show in subform??

    Greetings! Strange problem again: I have a pretty simple form that includes subform. Subform's table is linked to main form's table with parent/child relation. Connecting fields are main table's ID field and corresponding field in child table. Subform is in datasheet view. This is pretty basic...
  13. T

    Need help with concatenating fields

    Thanks Eugin. My query indeed runs on parameter that it gets from a form. I didn't know that it would be a problem. I will adjust my code, modify Browne's code to accept more parameters and post results here. I will also edit my previous post to be more standard (after a meeting of course...
  14. T

    Need help with concatenating fields

    Greetings! I have a following problem: I need to concatenate fields in one of my tables depending of several conditions based on different fields in same table. Here is sample row from the table. NonDiagnosticsFindsMainTable ID: 7 LocusID: 2 LocusNr: 2.2 MaterialID: 1...
  15. T

    How to combine two structuraly identical tables to one?

    Thanks! Have to try this tomorrow at work. Television Edit: Worked as it should! Thank you again!
Back
Top Bottom