Results 1 to 1 of 1
  1. #1
    gharsa is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Aug 2013
    Posts
    1

    RecordSource pour un Réports "etat" sur access 2003

    dim cn As ADODB.Connection
    Dim rs As ADODB.Recordset
    Set cn = CreateObject("ADODB.Connection")
    Set rs = CreateObject("ADODB.Recordset")


    With cn
    .ConnectionString = "PROVIDER=SQLOLEDB;" & _
    "DATA SOURCE=sever;" & _
    "USER ID=sa;" & _
    "PASSWORD=dimu;" & _
    "INITIAL CATALOG=base"
    .Open
    End With
    With rs
    .CursorLocation = adUseClient '
    .CursorType = adOpenStatic
    .LockType = adLockBatchOptimistic
    .ActiveConnection = cn
    .Open "SELECT * FROM table"
    End With
    Me.Report.RecordSource = rs




    j'arrive pas à affecter une table "Clients" qui est sur sql server et qui est protège avec mot de passe a un recordsource d'un report
    Google translation: I manage not to affect(allocate) a table "Customers" which(who) is on sql server and which(who) is protect with password has a recordsource of an adjournment(transfer)

    NB: le même code marche avec me.form.recordsource = rs
    Google translation: NB: the same code walks(works) with me.form.recordsource = rs
    Last edited by June7; 08-23-2013 at 12:48 PM.

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

Similar Threads

  1. "clipboard non responding" access 2003
    By sfgiantsdude in forum Access
    Replies: 1
    Last Post: 08-27-2012, 12:37 PM
  2. Access 2003 "Link Text Wizard" bug
    By spacekowboy in forum Import/Export Data
    Replies: 2
    Last Post: 05-30-2012, 02:28 PM
  3. Access 2003 Date() Function returns "#Name?"
    By smartel@soprema.ca in forum Programming
    Replies: 5
    Last Post: 01-18-2012, 05:52 AM
  4. Replies: 2
    Last Post: 11-04-2011, 02:45 AM
  5. Replies: 0
    Last Post: 03-04-2010, 06:32 PM

Tags for this Thread

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