Search results

  1. R

    Hide button

    Thanks Paul. That really was a quick fix. :)
  2. R

    Hide button

    Hi all, I would like to have 3 buttons on a form. When clicking Button1, Button2 and Button3 should be shown and Button1 hidden. When clicking Button3, Button2 and Button3 should be hidden and Button1 shown. How can I do this when it is not possible to manage the object being clicked...
  3. R

    Problem with Filter

    I am filtering the mainform from the mainform. I cannot set Me.cboKunde outside quotes.
  4. R

    Problem with Filter

    Hi all, I am having troubles getting a filter working. I have previously had succes setting a filter on a subform from a mainform using the following code: Me!subMaskiner.Form.Filter = "[Kundenavn] = [Forms]![frmListeMaskiner]![cboCurrentCostumer]" Now I have to filter a mainform but I...
  5. R

    Making a column ascending

    Thanks a lot :)
  6. R

    Making a column ascending

    Hi All, I am trying to make a column in a tabled form ascending when a certain checkbox is checked. Is this possible to do in VBA? Thanks -Ronnie.
  7. R

    Records in tables

    Hi, Am I able to make sure that a value can be applied to only one record? If so how then? Thanks -Ronnie
  8. R

    Showing x highest records

    Thanks. Really can't believe it was that simple. :)
  9. R

    Showing x highest records

    Hi, I am making a DB which contains info of some components in machines I have. For instance I have info about the IP adress for the component. The info is filtered on machine and component but I would also like to display only the 3 newest updates for the component. The ID will not be...
  10. R

    Variables unknown

    I solved the problem by deleting the record source for the main report.
  11. R

    Showing certain records

    Thank you VERY much. Now it is fanally working. Thanks for your time, it is very much appreciated.
  12. R

    Showing certain records

    I can't find out how to use the AND keyword. DoCmd.OpenForm "frmRetKoder", , , "MaskineID = [Forms]![frmInfoMaskiner]![MaskineID]" And "KomponentID = [Forms]![frmInoMaskiner]![KtlFane45] + 1", , acDialog When I am having only one of the IDs in the condition I get the records sorted. But no...
  13. R

    Variables unknown

    Here is an image of how the report looks like in design view and in preview. I do not get why the records are shown twice when I have the fields and subs only once.
  14. R

    Showing certain records

    What if I need it to be filtered on the "KomponentListeID" as well?
  15. R

    Variables unknown

    No, the two issues are not related. Good question. I made the criteria relate to the field and control on my form instead and it worked. Just now I am shown the tables twice?
  16. R

    Showing certain records

    Yes, my subform is showing all filtered records matching the criteria. E.g. I had 4 records in my subform but only one record (the first) in the opened form. The name of the field related to the main form is "MaskineID" but I also have a tabbed control which a field called "KomponentListeID"...
  17. R

    Variables unknown

    Hi, I am having some trouble getting my report work correctly. I have a report, repKomp, based on some sub-reports which are based on queries. I have two criterias for the queries - the same two for all - saying that two FK's must be filtered on a variable, Mask and Komp respectively. I...
  18. R

    Showing certain records

    Sorry for my late response. I have tried both of the following codes: DoCmd.OpenForm "frmRetKoder", , , "KodeID = " & Me!subKoder, , acDialog DoCmd.OpenForm "frmRetKoder", , , "KodeID = " & Me!subKoder.Form!KodeID, , acDialog The first line will result in error while the second line will...
  19. R

    Showing certain records

    But as I mentioned earlier: Using the code on the first page only returns 1 record for me.
  20. R

    Showing certain records

    I can't make it work. I have suited the code for my application: Dim rs As Object Dim lngBookmark As Long lngBookmark = Me!subKoder.Form!KodeID DoCmd.OpenForm "frmRetKoder", , , , , acDialog Set rs = [Forms]![frmRetKoder].RecordsetClone ' This is where the bug appears...
Back
Top Bottom