Results 1 to 5 of 5
  1. #1

    Default Query Filter Problem


    Mga bro, unsa man codes paghimo ug criteria or kana bang "filtering" sa VB ngad2 sa MSAccess Database (Access 97 Format) ?

    Hehe. Thesis jud na namo.. Tagam kay pa-tuga ug skuwela programming dili man diay kabalo.. Waaaahahaha

  2. #2

    Default Re: Query Filter Problem

    bro, can you simplify your question further?

  3. #3

    Default Re: Query Filter Problem

    you can use SQL aron makuha ka og data from you database which is access.

  4. #4

    Default Re: Query Filter Problem

    Quote Originally Posted by nirdle_phogi
    Mga bro, unsa man codes paghimo ug criteria or kana bang "filtering" sa VB ngad2 sa MSAccess Database (Access 97 Format) ?
    Hehe. Thesis jud na namo.. Tagam kay pa-tuga ug skuwela programming dili man diay kabalo.. Waaaahahaha
    i think you need to set up a connectionstring from vb to access. there are tons of examples found @ www.planetsourcecode.com just query the ADO examples. Im assuming ur using vb6 as ur front-end and access as ur back-end. ayt

  5. #5

    Default Re: Query Filter Problem

    Please see below....I hope you can get something....


    Public Server_Connect As String
    Public ConnectString As String
    Public RecSet As New ADODB.Recordset
    Public ConnectMe As New ADODB.Connection

    private sub connectdata

    Server_Connect = "Provider=MSDASQL.1;Persist Security Info=False;Data Source="
    Server_Connect=Server_Connect+"YOURDATABASE"
    Server_Connect=Server_Connect+";User ID=MY_USER_ID"
    Server_Connect=Server_Connect+";Password=MY_USER_P ASSWORD"
    Server_Connect=Server_Connect+";Data Source=MYDATASOURCE"

    If ConnectMe.State = 1 Then ConnectMe.Close

    ConnectMe.Open Server_Connect

    Set RecSet = ConnectMe.Execute("SELECT * from YOURTABBLE where COLUMNTOBEFILLTER='" & mm & "'")

    if not RecSet.EOF then

    .
    .
    . Put your code here if you need
    .
    .

    end if

    set RecSet=nothing

    end sub

  6.    Advertisement

Similar Threads

 
  1. Raider 150 Oil filter Bolt Problem
    By marko_85 in forum Automotive
    Replies: 20
    Last Post: 10-03-2012, 09:21 AM
  2. problem with ram and other query
    By Allen in forum Computer Hardware
    Replies: 9
    Last Post: 05-17-2011, 01:14 PM
  3. Replies: 221
    Last Post: 06-02-2009, 01:22 AM
  4. Playstation 2 Problem
    By baldog in forum Gizmos & Gadgets (Old)
    Replies: 18
    Last Post: 03-02-2006, 08:28 AM
  5. m125 problem
    By eliel73173 in forum Gizmos & Gadgets (Old)
    Replies: 6
    Last Post: 04-29-2005, 01:47 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
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top