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!

Good Morning Sir Eric,

Sir I nid your advice about using mysql server in vb 6.0. Ano po ba ang compatible na version sa vb6.0 sir?? If may sample installer at application sir. Pwd mo maibigay sa'kin sir.....
Hope makabigay ka ng feedback sir....
Thanks in advance sir.......
 
mga sir pahelp naman po sa mediaplayer. register may login may upload and download, nasa attachment po ung file.... help naman po mga sir:help::praise:
 

Attachments

  • pinoyWAP_mediaplayer-vb-program-unfinished.zip
    64.2 KB · Views: 1
Last edited:
How to Package:

  1. Open the Start Menu of your Windows
  2. Click "All Programs"
  3. Then "Microsoft Visual Studio 6.0
  4. >> Microsoft Visual Studio 6.0 Tools
  5. >>Package and Deployment Wizard

Sabi nga po ni Sir Eric, WIZARD po yan so no need for step by step procedure. Just read the process.

-- credits to sir ericgmejia :)

aun,,,tnx poh sir,,,napackage ko na :))
sir ibe-burn ko po pala e2,,ok lang ba na yung folder lang na package ang iburn ko kahit hindi ko na isama yung mga forms ko??
hindi poh ba mag eerror yun??
 
Good Morning Sir Eric,

Sir I nid your advice about using mysql server in vb 6.0. Ano po ba ang compatible na version sa vb6.0 sir?? If may sample installer at application sir. Pwd mo maibigay sa'kin sir.....
Hope makabigay ka ng feedback sir....
Thanks in advance sir.......

ADODB, maski anong version ng mySQL gagana yan
wala ako mySQL kaya wala ako samples nun
pero alam mo yung sample ko dito papalitan mo lang ng connectionstring pwede na sa mySQL

wala ka na babaguhin sa code

http://www.connectionstrings.com/mysql
 
aun,,,tnx poh sir,,,napackage ko na :))
sir ibe-burn ko po pala e2,,ok lang ba na yung folder lang na package ang iburn ko kahit hindi ko na isama yung mga forms ko??
hindi poh ba mag eerror yun??

that is the general idea of making the installer

pero i suggest i test mo muna sa isang malinis na pc ang installer mo
baka kasi merong kang components na di naisama sa packaging
 
Last edited:
Sir eric, gumawa na ko ng odbc sa client, tinest ko.. Ok naman.. Paano ko ngayon connect sa server?
 
Sir eric, failed pala.. Gumawa ako ng odbc sa client, ginamit kong server name yung sa server, tapos next ko.. Ayun,failed.. Bakit po ganun?
 
hindi ko gets.. Paano ko pagkokonekin ung client at server? C0nnecti0n string lang? Alin po dun? Di ko magamit yung sa OLE BUILDER, Failed po kasi..

diba yung ADODB mo merong connection string property?

Code:
Dim cnn As New ADODB.Connection
Dim strConnect As String
Dim sSQL As String

strConnect = [COLOR="Red"]"Provider=SQLOLEDB;Data Source=SERVERNAMEMOTO;Initial Catalog=DATABASEMOTO;User Id=USERIDTOSASERVER;Password=PASSWORDNGUSERSASERVERTO;"[/COLOR]

cnn.Open strConnect

'connected na, gawin mo na ang dapat gawin dito
sSQL  = "SELECT ..........."
dim RS as new ADODB.Recordset
rs.open sSQL, cnn

'isara mo na after using
cnn.Close

just refer sa samples ko, sabi ko nga sa inyo connection string lang ang papalitan e, same code lang

kapag same PC pwede mo gamitin ang Ttrusted connection, wala na username at password to
Code:
strConnect = "Provider=SQLOLEDB;Data Source=SERVERNAMEMOTO;Initial Catalog=DATABASEMOTO;Integrated Security=SSPI;"

nandun sa www.connectionstrings.com lahat yan and more explanation
 
Last edited:
diba yung ADODB mo merong connection string property?

Code:
Dim cnn As New ADODB.Connection
Dim strConnect As String
Dim sSQL As String
strConnect = "Provider=SQLOLEDB;Data Source=SERVERNAMEMOTO;Initial Catalog=DATABASEMOTO;User Id=USERIDTOSASERVER;Password=PASSWORDNGUSERSASERVERTO;"
cnn.Open strConnect

'connected na, gawin mo na ang dapat gawin dito
sSQL  = "SELECT ..........."
dim RS as new ADODB.Recordset
rs.open sSQL, cnn

'isara mo na after using
cnn.Close

just refer sa samples ko, sabi ko nga sa inyo connection string lang ang papalitan e, same code lang

kapag same PC pwede mo gamitin ang Ttrusted connection, wala na username at password to
Code:
strConnect = "Provider=SQLOLEDB;Data Source=SERVERNAMEMOTO;Initial Catalog=DATABASEMOTO;Integrated Security=SSPI;"

nandun sa www.connectionstrings.com lahat yan and more explanation

sa client po na connectionstring un? Sige try ko muna.. Ü
 
sa client po na connectionstring un? Sige try ko muna.. Ü

server side is your SQLServer
client side is your app located on another computer somewhere sa LAN

to connect remotely, use connection string suited for the:
provider,
server name (Data Source),
database name (Initial Catalog),
user id,
and password
ang tawag dyan ay "SQL authentication"

to connect locally (same computer) use trusted connection (SSPI) or the same connection as above.
ang tawag dito ay "NT Authentication"

make sure reachable (PING) ng client ang server at open sa server ang ports sa firewall ang SQLServer mo (ports 1433 and 1434)

thats why pinagtest kita sa ODBC just to see ang connectivity ng client at sqlserver

that is a good practice para di masayang ang oras kakadebug not knowing di naman pala makakaconnect
 
server side is your SQLServer
client side is your app located on another computer somewhere sa LAN

to connect remotely, use connection string suited for the:
provider,
server name (Data Source),
database name (Initial Catalog),
user id,
and password
ang tawag dyan ay "SQL authentication"

to connect locally (same computer) use trusted connection (SSPI) or the same connection as above.
ang tawag dito ay "NT Authentication"

make sure reachable (PING) ng client ang server at open sa server ang ports sa firewall ang SQLServer mo (ports 1433 and 1434)

thats why pinagtest kita sa ODBC just to see ang connectivity ng client at sqlserver

that is a good practice para di masayang ang oras kakadebug not knowing di naman pala makakaconnect

nung nagtest ako ng odbc sa client, successful yun.. Meron din kasing nakainstall na sql2000 dun..

Nagcode na ko sa client side using the connection string na binigay mo.. Hindi ako makakonek.. Mali kasi userid at password.. Nagreinstall ako ng sql2000, kin0nfigure ko ule yung sa userid at password, kaso po mali pa din.. Un po kasi error sa client side is invalid authorization specification..May mali po ba sa paginstall ko ng sql2000?
 
nung nagtest ako ng odbc sa client, successful yun.. Meron din kasing nakainstall na sql2000 dun..

Nagcode na ko sa client side using the connection string na binigay mo.. Hindi ako makakonek.. Mali kasi userid at password.. Nagreinstall ako ng sql2000, kin0nfigure ko ule yung sa userid at password, kaso po mali pa din.. Un po kasi error sa client side is invalid authorization specification..May mali po ba sa paginstall ko ng sql2000?

anong edition ba yang SQLServer2000 mo?
sa installation kasi nyan magtatanong ng password ng user 'sa'
o kaya i configure mo sa logins sa server, pwede ka rin mag create ng user na may password at yun ang gamitin mo sa connection string mo

yung tool na binigay ko sayo, yung gumagawa ng connection string pwede mo na gamitin yung lalabas na connectionstring dun, lagyan mo lang ng password kasi wla yun dun.
 
anong edition ba yang SQLServer2000 mo?
sa installation kasi nyan magtatanong ng password ng user 'sa'
o kaya i configure mo sa logins sa server, pwede ka rin mag create ng user na may password at yun ang gamitin mo sa connection string mo

yung tool na binigay ko sayo, yung gumagawa ng connection string pwede mo na gamitin yung lalabas na connectionstring dun, lagyan mo lang ng password kasi wla yun dun.

napagana ko na po yung UserID at Password. pati po ba sa client e ganun din pagiinstall? hindi ko matetest ngayon, wala na yung client na laptop.. Medyo nagegets ko na sir.. ^^, Malapit ko na din magawa yun.. ^^
 
napagana ko na po yung UserID at Password. pati po ba sa client e ganun din pagiinstall? hindi ko matetest ngayon, wala na yung client na laptop.. Medyo nagegets ko na sir.. ^^, Malapit ko na din magawa yun.. ^^

in this case wala kang ilalagay sa client pc kundi yung program mo
basta sabi ko nga connectionstring lang at LAN ang involved sa connection
 
magkakaibang connection object at magkakaibang connection string
ang bawat database

pero hindi pwede pagsamahin sa isang query ang data sa magkaibang database

pero sa code pwede mo naman gawan ng paraan yan

kung hawak ng 2 recordsets ang data sa dalawang database then its just a matter of common sense para i manipulate sila ng sabay

Nakuha ko na ung syntax, joining two tables with different MS access files

SELECT table1.field1, table2.field2 FROM table1 INNER JOIN [;database=Path].table2 ON table2.PKey=tabl1.Pkey

to those who needs this :excited::excited:
 
Last edited:
Nakuha ko na ung syntax, joining two tables with different MS access files

SELECT table1.field1, table2.field2 FROM table1 INNER JOIN [;database=Path].table2 ON table2.PKey=tabl1.Pkey

to those who needs this :excited::excited:

yes pwede yan but with unresolved issues that you will soon discover

thats why i did not mention it anymore.

mas safe if you read them seaparately into a recordset and manipulate in memory

even in SQLServer we dont normally do that.
 
sir eric tama ba ang code ko sa pag add ng rows dun sa msflexgrid mo. ito ang code eh

msflexgrid1.rows=msflexgrid1.rows+1

tsaka sa pag delete ng rows

with rs ' to delete record from recordsource
.Filter = "RecordID = " & iRowData
.delete
.Filter = ""
.MoveFirst

with msflexgrid1 ' to delete the item from the grid
.removeitem iRowDate
.redraw = True
end with
end with


tama po ba? para wala kasing effect.

pwede pa-guide naman.
 
Last edited:
sir pwede penge na rin ng sample para sa treeview, pinag-aaralan ko din kahit papaano. kumuha na ako ng samples from google at iba pa. baka meron di kayo sir na mas madaling sundan.
 
Back
Top Bottom