Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Datatable.Select Problem

Datatable.Select Problem

Scheduled Pinned Locked Moved Visual Basic
databasequestionwpfwcfperformance
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    eatwork
    wrote on last edited by
    #1

    Hello everyone, Thank you for viewing my post. I have a question regarding the Datatable.Select method. I have a program that stores the tables from the database onto the users computer and keeps them in memory, to reduce trips to the database, and not binding my program to the database, to allow the user to make changes without affecting the data directly on the database. I need to populate a listview from the tables within the user's computer. The query in my db is as follows: Me.lstCommodityPool.RowSource = "SELECT commodityId, tbl_Commodity.commodityName " & _ " IIf(nz(commoditySerialNum,'')='','','(S/N:' & commoditySerialNum & ')') " & _ " IIf(nz(commodityUnitNum,'')='','',' - ' & commodityUnitNum) " & _ " IIf(nz(commodityCurrentLSD,'')='','',' - ' & commodityCurrentLSD) AS commodityName " & _ " FROM tbl_Commodity " & _ " where commodityId NOT IN (select quoteCommodityId from join_tbl_Quote_Commodity " & _ " where quoteId=" & Nz(Me.txtQuoteNum) & _ " and quoteRevisionId=" & Nz(Me.txtRevNum) & _ ") and companyId=" & Nz(Me.combCompany) & _ " order by commodityName" The question I have is how can I recreate the condition, especially the "NOT IN" clause, using the tables on the users computer? Thank you

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups