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!

Assuming..
txtOperator.Text = "Alvin Gutierrez"
txtDate.Text = "9/18/12"
txtMC.Text = "M4"

"SELECT SUM(Mach_Hours) AS TotalHours from myTable WHERE Operator= '" & txtOperator.Text & "' AND prod_date = #" & txtDate.Text & "# AND MC='" & txtMC.Text & "'"

I got your files, may babaguhin ako and idadagdag para meron ka pong reference...



Error tong query mo brad once na na icompile to sa palagay ko, nag aggregate ka hindi ka nag group by
 
sinubukan ko nga po, hindi sya gumagana. and isa man sa mga text box ay walang value error din ito.
 
kung ako sayo sir gamit ka na lng ng DTPICKER i'm working too sa hotel reservation right now at dtpicker gamit ko :)

any sample code?please?kelangan ko na kasi haha,alam mo naman malapit na ang finals,hays,wala pa ngang DB yan eh,
 
Error tong query mo brad once na na icompile to sa palagay ko, nag aggregate ka hindi ka nag group by

"SELECT SUM(Mach_Hours) AS TotalHours from myTable WHERE Operator= 'Alvin Gutierez' AND prod_date = #9/18/2012# AND MC='M4'"
Oh, talaga? I ommited rs.Open sQL, mConn..
I assumed he already know that...
pero yung query ko, hahaha, try mo muna, bago ka mag-comment... :)


galing to sa MS Access na ginawa ko...
SELECT Sum([Spares Master].[Total_Available_Inventory]) AS Total_Qty
FROM [Spares Master]
WHERE ((([Spares Master].Trigger_Point)>12))

Mali pala 'to, diko alam.. pero gumagana....

Magbasa-basa ka muna brod... :)
http://www.w3schools.com/sql/sql_func_sum.asp
http://www.sql-tutorial.net/sql-sum.asp

Yung Group By, magagamit yun, kung gusto mong i-sum ang oras ng bawat operator...
Parang ganito...
Operator----------------Total_Hours
Juan---------------------180 hours
Pedro-------------------40 hours

------------------------------------

Peace!... :D
 
Last edited:
GUYS PA HELP NAMeN AKO SA SYSTEM NAMEN
Is about reservation systems.....

pinapadagdag kase samen ung current date tapos po ung expirde date..


example po

Current date : 9/29/2012
Expired Date : 10/3/2012

ganyan po dapat automatic na po xia sa textbox na lalabas para save nlng po.,...
kung maisusugest po kau mas maganda po maraming salamat po sa magreply please para sa EPIC SYSTEM NAmen Please...

heres my FBACCOUNT
[email protected]
please tnx
 
Patulong po about sa VB6.
Gusto ko po kasing maexport yung mga data sa MS Access sa MS Excel ng naaayon sa closets na kung saan located yung mga items.
(For example: sa DOOR 1, lahat lang nung mga items information sa DOOR 1 ang ie-export nya sa Excel)
About apparatus po yung system namin at di po namin alam kung paano po iyon. Patulong po, please...
 
pano ako mkakakuha ng free visual basic 6.00?.i'm still newbie in this langguage..:pray: plzzzzz?:)
 
guys.. help naman po code para sa visual basic 6.0 using ADODB and access database

5cx3s4.jpg

i selected last name

dito po sa picture. i have 1 combobox, 1 textbox, 1 listbox and 1 command button

bale ung combobox po is filled with fields galing dun sa table sa database

111sdgo.jpg


after po nun.. magtatype ung user sa textbox for example sa picture sa taas nag type ako ng letter "a"

bali lahat po ng lastname na may letter a lalabas dun sa listbox

pano po ung codes? :D thank you po sa tutulong
 
#include<iostream>
#include<string>
using namespace std;

int main()
{
string x,y;
do
{
system ("cls")
cout<<"SYSTEM MENU\n"
<<"a. Activity 1\n"
<<"b. Activity 2\n"
<<"c. Activity 3\n"
<<"d. Activity 4\n"
<<"e. Activity 5\n"
<<"f. Activity 6\n"
<<"g. Activity 7\n";

cout<<"Enter your choice: ";
cin>>x;

if (x=="a")
{
system ("cls")
cout<<"My First C++ program.\n";
cout<<"\n\nDo you want to quit? (y/n)";
cin>>y;
}
else if (x=="b")
{
system ("cls")
cout<<"Name\t\t\t\t\t\t\t\t\t\t"<<"Name";
cout<<"\t\t\t\t\t"<<"Name\t\t\t\t\t";
cout<<"Name\t\t\t\t\t\t\t\t\t\t"<<"Name";

cout<<"\n\nDo you want to quit? (y/n)";
cin>>y;
}
else if (x=="c")
{
system ("cls")
int a,b,z;
cout<<"Enter first number: ";
cin>>a;
cout<<"Enter second number: ";
cin>>b;

z=a+b;
<<"The sum of the two numbers is "
<<sum
cout<<sum<<"\n\n\n";

cout<<"\n\nDo you want to quit? (y/n)";
cin>>y;
}
else if (x=="d")
{
system ("cls")
char a[99],b[99],c[99],d[99],e[99],f[99];
cout<<"Name: ";
cin.getline (a,99);
cout<<"Address: ";
cin.getline (b,99);
cout<<"Age: ";
cin.getline (c,99);
cout<<"Gender: ";
cin.getline (d,99)
cout<<"Course: ";
cin.getline (e,99);
cout<<"Section: ";
cin.getline (f,99);

cout<<"Hello "<<a<<" ! You are "<<c<<" years of age and you leave at "<<b<<". Goodluck to your "<<e<<" course.

cout<<"\n\nDo you want to quit? (y/n)";
cin>>y;
}
}
while (y=="n");
return 0;
}



Pa help naman po . Hirap kase . Project po namin yna kaya pa help po please :help::help::help::help:
 
guys.. help naman po code para sa visual basic 6.0 using ADODB and access database

5cx3s4.jpg

i selected last name

dito po sa picture. i have 1 combobox, 1 textbox, 1 listbox and 1 command button

bale ung combobox po is filled with fields galing dun sa table sa database

111sdgo.jpg


after po nun.. magtatype ung user sa textbox for example sa picture sa taas nag type ako ng letter "a"

bali lahat po ng lastname na may letter a lalabas dun sa listbox

pano po ung codes? :D thank you po sa tutulong



Eto po ang oplusyon dyan.

for example. juan dela cruz ang ise-search nio. pero juan lang ang naaalala nyo at hindi pati yung family name.

typ nyo po sa search bo nyo 'to. "juan%" without quotes.
Lahat ng juan na nasa DB niyo ay ipapakita.

for exampl uli. dela cruz lang naman. type mo sa search box mo ganito. "%dela cruz" whitout quotes. lahat ng dela cruz ay ipapakita ng DB mo.

Last Example. type %dela% to your search box. Ipapakita naman nya ang lahat ng record ng DB mo na may "dela" sa gitna.

_______________________

type a% lahat ng record na nag sisimula sa "a" ay ipapakita ng Db mo.

sana nakatulong.
 
Guys may tanong lang ako.

Paano ba i-install ang mga installer using VB6 codes one at a time?

For example limang intaller ang i-install ng isa isa at hindi sabay-sabay.
At ang code ay nasa iisang command button lang.

example codes:

Code:
private sub command1_click
shell ("C:\Ran.exe")
shell ("C:\LOL.exe")
end sub

Alam naman natin siguro na pag ganito ang mga codes na nasa command button, sabay-abay na mag ra-run ang dalawang installer na yan. Ang gusto ko sana ay yung one at a time lang.

Sana po matulungan nyo ako. Thanks in advance
 
pa help pohh... pahingi poh aq nang sample Interface or code ng Scheduling system.... slamt poh...
 
Eto po ang oplusyon dyan.

for example. juan dela cruz ang ise-search nio. pero juan lang ang naaalala nyo at hindi pati yung family name.

typ nyo po sa search bo nyo 'to. "juan%" without quotes.
Lahat ng juan na nasa DB niyo ay ipapakita.

for exampl uli. dela cruz lang naman. type mo sa search box mo ganito. "%dela cruz" whitout quotes. lahat ng dela cruz ay ipapakita ng DB mo.

Last Example. type %dela% to your search box. Ipapakita naman nya ang lahat ng record ng DB mo na may "dela" sa gitna.

_______________________

type a% lahat ng record na nag sisimula sa "a" ay ipapakita ng Db mo.

sana nakatulong.

thanks po sa sagot, pero alam ko na po ung sinasabi nyo. what i mean is. kung anong field ung pinili sa combo box dun maghahanap ung query tapos ididisplay sa listbox.
 
thanks po sa sagot, pero alam ko na po ung sinasabi nyo. what i mean is. kung anong field ung pinili sa combo box dun maghahanap ung query tapos ididisplay sa listbox.

Ganito ba ang ibig mong sabihin??

kunyare may combobox ako

lastname
firstname

tapos ang gusto mo pag ung lastname ang pinili ko dapat ung query ko ganito

SELECT * FROM lastname = '%search'

ganyan ba?? kung ganyan nga at hindi ako nagkakamali ganito lang gawin mo

Code:
Private Sub Combo1_Click()
MsgBox Combo1.Text
End Sub

xempre mag memessage ngaun ung pinili mo sa combobox

then try to declare globally sa form ng variable or you can use an invisible textbox so magging ganito na ngaun xa

Code:
Private Sub Combo1_Click()
MsgBox Combo1.Text
napili = Combo1.Text
txtNapili.Text = Combo1.Text
End Sub

yan edi nagkaron na ng laman ung variable or textbox, ngaun sa query mo ganito ang mangyayare

Code:
'para sa variable
"SELECT * FROM tblNAME WHERE " & napili & " LIKE '%" & txtSEARCH.text & "%'" 

'para sa textbox
"SELECT * FROM tblNAME WHERE " & txtNapili.Text & " LIKE '%" & txtSEARCH.text & "%'"

ganyan po ba :) sana nagets mo :)
 
Back
Top Bottom