Search results

  1. B

    Show rowsource value

    Typo. I meant me.refresh.
  2. B

    Show rowsource value

    refresh mthod comes to mind
  3. B

    Locking refresh on unbound box

    Here is what bothers me today. In one form, I have three unbound boxes (named Outmod1 to Outmod3) whom control sources are based on random functions (to simulate small changes for the user). The user toy with those value, lock one or more, before going on further. That is what is intended at...
  4. B

    moving through records

    note to self : don't mix up rst.movenext and rst.bookmark Case closed
  5. B

    moving through records

    Sorry for something which should be very basic, but I'm stumped by the following problem : I want to loop through a form and extract one field at time per record found. So I wrote : Dim rst as recordset Dim Xnb, Cpt, Exitidx as long set rst = me.recordsetclone Xnb = rst.recordsetcount if...
  6. B

    I have no clue where to begin...

    I think I got you right the first time ;) . You want to make sure that once you create/edit a new form, you must check if RessourceID is "free" or not. So, it means that you must check if said RessourceID is "free" during a new time frame. Sounds like you have to, once you click on a button...
  7. B

    I have no clue where to begin...

    Looks like you have some writing to do on the Afterupdate on the Pickupdate + pickuptime event of your forms. Since you picked the ressource up, it won't be available until it's delivered, so I'd only check the later (with the added time as necessary) when you add/edit a new form. Nothing needs...
  8. B

    Error 7874 in a SQL string

    I feel ... so ...dumb Brains....Need more brains
  9. B

    Error 7874 in a SQL string

    tbl_ctc_evt is made of Idx_ctcevt : Long Idx ctc : Long Idx evt : Long and other fields Both Lnumevt and LReftst are declared, in a Gen Val module, as public var both Long. General purpose : I'm trying to check the existence of any record in table tbl_ctc_evt where both [Idx ctc] matches...
  10. B

    Error 7874 in a SQL string

    Thank you very much for the prompt reply. Point duly taken, I'll never ever ever again use those underscore (working on an old base, naming conventions or lack of are not mine to start with, but nonetheless). Alas, the duck is still alive; still got an 7874 error after puting brackets were...
  11. B

    Error 7874 in a SQL string

    Hello here is the code that bothers me : dim strSQL as string LReftst = tst_idx (InRef) ' this is a global public function which returns a long if LReftst <> 0 then strSQL = " SELECT tbl_ctc_evt.[Idx Ctc], tbl_ctc_evt.[Idx evt] FROM tbl_ctc_evt WHERE tbl_ctc_evt.[Idx Ctc] = '" & LReftst &...
  12. B

    Testing in vb to see if a query is empty

    This methode does not work anymore, I get a compilation error here : "&gt; 0 " so I was thinking of using the count (*) function, but, and contrary to the help file, I get a syntaxt error. Can anyone please give me a hand so I can check if a subform, based on a query is empty ?.
  13. B

    Field accessing in standard module

    I feel so dumb at times, why did I had to think ".." were needed in brackets?. Thanks ps : no need to reply :p
  14. B

    Field accessing in standard module

    Hello, Here is what trouble me : In a standard module, I need to test an long field. Public function test_Idx (Inref as Long) as Long Dim stDocname as string Dim T_idx as long stDocname = "Edit_Form" DoCmd.Openform stDocname,,,"[Ref_ctc]=" & Inref So the form opens only where I want it to be...
  15. B

    Finding duplicates out of differents fields

    Many thanks.
  16. B

    Finding duplicates out of differents fields

    Sorry for the question's wording. Here is what bugs me: - I have one table tblRefctc with the followings fields : LCtcRef,../..,LRefServ0, LrefServ1,..LrefServ16. Where all those Lref are long; LCtcRef being the primary key. This table describe a contact from different branches (account...
  17. B

    Reading public variables

    This is my first try with public variables and there are some problems, I'd like your help with. Idea : I'd like to set a public boolean variable which can be read in various forms. My idea is to tie the visible aspect of various buttons to this value. After reading the forum here, I came to...
  18. B

    Automatic validation on update query

    thx for the help, the hourglass tip is a good idea.
  19. B

    Automatic validation on update query

    Hello, In one of my forms, I use a boolean value (check-box) which I'd like to set as false as the form open. To do this I made a query and use it as opening statement in the form : " Private Sub Form_open () Dim stDocName as string stDocName ="Reset_Action" DoCmd.Openquery...
  20. B

    Find Method

    I'm very new at VBA, but had to work on something similar. Why not try instead?: RS.FindFirst "[Réfproduit]=" & CStr(Code) It worked for me. HTH, pour info quantité est déminin :D
Back
Top Bottom