Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

Exclusively for Visual Basic 6.0 Programmers Only!

eto nlng question q ,
pwede ba lagyan ng error gamit yung msgbox yung find?
example adodc1.recordset.find "blah blah
tapos pag walang na search then
msgbox "nothing to find"

yung ganon baga, panu kya yan?

Pwd yan. Record count ang gamitin mo.

Code:
If Data.Recordset.RecordCount = 0  Then

Msgbox("Nothing to Find")
Exit Sub
Else
'Dito ang result
End If
 
@bryan1207 sir baka pwede naman po p2long dun sa post ko about sa list at database..
 
Pwd yan. Record count ang gamitin mo.

Code:
If Data.Recordset.RecordCount = 0  Then

Msgbox("Nothing to Find")
Exit Sub
Else
'Dito ang result
End If

Adodc2.Recordset.Find "reference = '" & txtreference.Text & "'", , adSearchForward, 1
If Adodc2.Recordset.RecordCount = 0 Then
MsgBox "nothing to find"
Else
MsgBox "my code!"
End If

bos ayaw eh..
lagi nag eexecute yung my code
 
Last edited:
@bryan1207 sir baka pwede naman po p2long dun sa post ko about sa list at database..

Adodc2.Recordset.Find "reference = '" & txtreference.Text & "'", , adSearchForward, 1
If Adodc2.Recordset.RecordCount = 0 Then
MsgBox "nothing to find"
Else
MsgBox "my code!"
End If

bos ayaw eh..
lagi nag eexecute yung my code

Upload niyo po sa mediafire ang mga ginagawa niyo then send niyo saken via PM. Try ko po gawin.
 
ask lng po mga ka dre .. Panu po bah mamanipulate ang broadband kit(SmartBro, Globe Tattoo) with VB6?? for example sending sms ..
 
Help sa ADODB at MySQL. Lagi na lang akong may error sa UPDATE. Naiinis na ako. Ito yung code ko

Code:
Private Sub Form_Load()
Set db = New ADODB.Connection
Set rs = New ADODB.Recordset

db.ConnectionString = "Driver={MySQL ODBC 5.1 Driver};Server=localhost;Database=isearch2; User=root;Password=password;Option=3;"
db.Open

End Sub

Private Sub cmdPrint_Click()
rs.Open "UPDATE cardinfo SET PrintCredits='" & Me.lblCredits.Caption &"' WHERE StudentNo='" & Me.lblStudentNo.Caption & "'", db, adOpenDynamic, adLockPessimistic
End Sub

Ito yung error:

attachment.php
 

Attachments

  • 88.PNG
    88.PNG
    7.1 KB · Views: 63
Run-time error '3001'
Comparing Fields as Criteria to Filter Recordset


Value is the value with which you will compare the field values (for example, 'Smith', #8/24/95#, 12.345 or $50.00). Use single quotes with strings and pound signs (#) with dates. For numbers, you can use decimal points, dollar signs, and scientific notation. If Operator is LIKE, Value can use wildcards. Only the asterisk (*) and percent sign (%) wild cards are allowed, and they must be the last character in the string. Value cannot be Null.

You are having a problem with this line
Code:
rs.Open "UPDATE cardinfo SET PrintCredits='" & Me.lblCredits.Caption &"' WHERE StudentNo='" & Me.lblStudentNo.Caption & "'", db, adOpenDynamic, adLockPessimistic

ano ang fieldtype nung fields mo (PrintCredits & StudentNo) ?
 
this site is a big help for me. im 32 and im taking up DIT at STI right now. although naiintindihan ko mga lectures, some things are just hard talaga. im making a program on pageant ngayon scoring system but i cant get it right talaga. all ur help guys would be greatly appreciated. btw, im just starting with VB :p this sem.

here is what im trying to work on right now: View attachment 63831

ranking is not working too well tlga. there are some bug on it and sometimes and ranking ay d tama. i think my logic is right on the ranking pero i dunno whats wrong. and last one, when i erase the score d nag miminus sa total score i tried if else but it doesnt work on text boxes. u can email me for any help: sh1pwr3ck1020@yc

thank you for making this site. big relief!
 

Attachments

  • Assignment VB2.zip
    3.5 KB · Views: 9
may mga flash na animation ba dyan tungkol sa basic math, pa help naman mga boss for educational purpose.
 
mga sir patulong naman po about po sa datagrid. .,
paano po makukuha yung laman ng datagrid na selected po,
kunwari may 6 records po tas pinili po o sinelect yung third record tas pagclick po ng select na button, lalabas po sa ibang form yung laman ng record na yun sa mga textbox po, . .
patulong naman po, kailangan ko po ito para sa system namin. . ,:help::pray:
 
Mga sir help. Gumagawa kasi ako ng age calculator. So far okay naman sya. Pero mali yung age na nilalabas nya.
Kasi for example. bday ni user is September 23,1991. So it means di pa sya nagbbday this year.
Pero ang nilalabas nya is 21 na. Pano yung compute na exact. Thankyou sa lahat!:)
Code:
Option Explicit
Dim Bday, Datenow As String

Private Sub Command1_Click()
Bday = ComboMonth.Text & "/" & ComboDay.Text & "/" & Year.Text
Label6.Caption = DateDiff("yyyy", Bday, Datenow)
End Sub

Private Sub Form_Load()
Datenow = Format(Now, "mm/dd/yyyy")
Text2.Text = Datenow
End Sub

And meron ba kayo SMSLibX 2.6 na ndi Demo? kasi sa net puro Demo e. Salamat! :)
 
Last edited:
help

cnu po may alam kung ano ang mgcode ng time sa system na hndi gagamitin yong time ng computer? share nmn po. need ko lang tlaga:help:
 
any idea kung paano gawin dito sa error na to..
attachment.php


naka primary po ung mga tables tapos nakarelation po..
:help::help::help:
 

Attachments

  • Clipboard01.jpg
    Clipboard01.jpg
    137.5 KB · Views: 76
mga sir na malulupit at bangis sa VB 6

my tanong lang po ako...

meron akong datagrid n nkdisplay ung record galing sa adodc1
tapos s textbox nkdisplay yung date ngayon

gusto ko sana i copy yung content or mga lahat ng data ng table 1 n nsa datagrid papunta sa table2 pro ksma yung date n nsa textbox

ang mangyayari parang nag bbackup sya ng record by date...

gusto ko kasi gumawa ng print button na makikita yung mga records dati..

so ang mangyayari eh sa next form ay gagawa ako ng combo box at dun nkdisplay yung mga date ng records...

tapos pag nakapili na eh magdidisplay yung mga record sa datagrid or listview.... pero kung anung record lang yung nsa date na yun...

possible ba mga sir?
 

Attachments

  • untitled.JPG
    untitled.JPG
    19.8 KB · Views: 7
any idea kung paano gawin dito sa error na to..
attachment.php


naka primary po ung mga tables tapos nakarelation po..
:help::help::help:

ayan, nasagot mo na yung question mo...
anyway, anong klase ba ng relationship ang meron yung tables mo? one-to-many or one-to-one?
 
TS at mga sb help nman oh, ccraan ako ng ulo sa basic programming nmin kasali kasi sa prospectus nmin eh, accountancy knuha ko pero kasali prin to hlig rn ako about hardware and software sa mga PC pero sa programming mukang hrapan na tlaga ako.

IF statements, do wile and until , next loop po rin sir. sana meron kayo mga tutorial dyan. exam nmin nxt week eh :(
 
Hi, my idea b kayo kung how to connect vb6 sa mysql database na nasa webhosting un database? lan based po ung vb6 program kung saan mgiinput ng data tpos my website pra maview yung data, so un database nun nasa webhosting. tnx!:)
 
Back
Top Bottom