恩,好象CSDN回复不了的 ?
嘿嘿,全选但不显示全部,在数据显示控件里可以控制显示的字段的
嘿,这次CSDN可以给我发表了吧。

解决方案 »

  1.   

    dim strfil as string,tmpfil as field,table1 as tabledef
    set table1=表.....
    for each filed in table1
    if filed.name="不要的字段" then
    'do nothing
    else
      if strfil="" then
      strfil=filed.name & ","
      else
      strfil=strfil & "," & field.name
      end if
    end if
    next
    SQL="Select " & strfil & " From 表..."
      

  2.   

    如果你用的是DataGrid之类的控件,
    就在那里去掉那一列。
    SQL并不是最终显示的语句啊,
    既然那么多字段,
    何不在显示的控件上除掉那一列呢?
      

  3.   

    没有必要在SQL里面去掉那一列的引用吧?