Jump to content
Fórum Script Brasil
  • 0

Asp Junto Com Access


osk

Question

4 answers to this question

Recommended Posts

  • 0

faz isso em asp...eu não lembro o camando em sql que faz a soma...esse comando vai mais rapido,...mas por enquanto fazer o q não é?...

<%

set conn = Server.CreateObject("AdoDB.Connection")

drv = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=CAMINHO DO SEU BD;Persist Security Info=False"

conn.Open drv

set tabela = Server.CreateObject("AdoDB.RecordSet")

tabela.ActiveConnection = conn

tabela.Open "Select COLUNA from SUA TABELA"

while no tabela.EOF

total = total + tabela("campo")

tabela.movenext

wend

response.write (total)

%>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.1k
    • Total Posts
      652k
×
×
  • Create New...