Jump to content
Fórum Script Brasil
  • 0

Problemas No Form_load


Guest Igor

Question

Olá, tenho uma função "monta", e quando a fiz coloquei-a no form_activate, mas depois mudei para o form_load. Acontece qua agora dá um erro na função. abaixo o código da função e indicado onde dá o erro.

Public Function monta()

With bloco 'bloco é o meu form

Dim i As Integer

i = 0

->.Data1.Recordset.MoveFirst

While ((Not .Data1.Recordset.EOF) And i < 10)

.lblNota(i).Caption = .Data1.Recordset.Fields("num") & " - " & .Data1.Recordset.Fields("titulo") & " -- " & .Data1.Recordset.Fields("texto")

.Data1.Recordset.MoveNext

i = i + 1

Wend

End With

End Function

obrigado

Igor

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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.2k
    • Total Posts
      652k
×
×
  • Create New...