Results 1 to 2 of 2
  1. #1
    patb12 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2015
    Posts
    1

    Aide sur un projet de basse de données.....Help on a data low draft

    Bonjour,
    J'ai creer un projet de basse de données sous ACCESS 2007, comme j'ai pu mais qui fonctionne.
    Dans l'idéal il me faudrait un formulaire multi critères mais la c'est pas si simple.
    Mon projet est trop gros pour être poster en pièce jointe, mais je peux donner l'adresse du téléchargement , si quelqu'un pouvais me dire se que qu'il en pense.
    Demander en message privé:
    Merci.

    Hello,
    I create a data bass ACCESS project in 2007, as I could but it works.


    Ideally I would need a multi criteria form but it is not so simple.
    My project is too big to be attached poster, but I can give the address of the download, if someone could tell me what he thinks.
    Request private message:
    Thank you.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    You cant use form boxes in a query if there's nothing in them..so..
    Test all controls for a possible filter then build the where clause.


    Code:
    if not isnull(cboState) then   sWhere = sWhere & " and [state]='" & cboState & "'"
    if not IsNull(txtName) then    sWhere = sWhere & " and [Name]='" & txtName & "'"
    if not IsNull(chkContact) then sWhere = sWhere & " and [Contact]=" & chkContact.value
    
    
        'remove 1st And
    if len(sWhere)>0 then sWhere= mid(sWhere,5)
    
    
      'just use the filter for a multi row continuous form 
    
    
    iLen = Len(sWhere) - 5
    If iLen <= 0 Then
        me.filterOn = false
    Else
        me.filter = sWhere
        me.filterOn = true
    End If
    
    
       'OR   
       'apply the sql to the form
    
    
    sSql = "SELECT * FROM tblCompany WHERE " & sWhere

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Have email from DB post in Outlook draft box
    By Banker Dude in forum Access
    Replies: 1
    Last Post: 04-23-2013, 03:42 PM
  2. Excel attachment and save as draft in outlook
    By ragsgold in forum Programming
    Replies: 1
    Last Post: 02-01-2013, 05:55 PM
  3. Is this redundant? NFL Draft DB
    By GenericHbomb in forum Database Design
    Replies: 2
    Last Post: 08-01-2011, 09:46 AM
  4. Save as Draft but mandatory field is not required
    By zuerin in forum Programming
    Replies: 5
    Last Post: 06-30-2011, 01:42 AM
  5. Exporting to Draft Email
    By swimmermx in forum Import/Export Data
    Replies: 0
    Last Post: 07-28-2010, 05:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums