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!

[TUT] VB6 MSAccess Sample using ADO (UPDATED V3 20100216) now with ADD and DataReport

Re: [TUT] VB6 MSAccess Sample using ADO (UPDATED V3 20100216) now with ADD and DataRe

syntx error in INSERT INTO statement

yan po ang error., napagana ko na po ung format na ganun sa isa kong program eh..

pati ung update ganito error

syntx error in UPDATE statement

sa query yata ayaw tanggapin..

access po gamit ko
 
Re: [TUT] VB6 MSAccess Sample using ADO (UPDATED V3 20100216) now with ADD and DataRe

nachecked ko na eh.. may mali ba?

alam mo ang isang technique para di ka malito sa SINGLE QOUTE
ay gawin mo syang constant

Dim XQ as String


---
XQ= Chr(39) 'Single QOute yan

strQuery = strQuery & "VALUES "
strQuery = strQuery & "("
strQuery = strQuery & XQ & txtUsername.Text & XQ & ", "
strQuery = strQuery & XQ & txtPassword.Text & XQ & ", "
strQuery = strQuery & XQ & txtFirstName.Text & XQ & ", "
strQuery = strQuery & XQ & txtLastName.Text & XQ & ", "
strQuery = strQuery & XQ & cboUserType.Text & XQ & ", "
strQuery = strQuery & XQ & txtAddress.Text & "'"
strQuery = strQuery & ")"

mas malinis at malinaw yan


paki send mo kung ano ang actual error message
saka kung kaya mo, paki post mo rin yung actual SQL code

yung

..... VALUES('name', '212121','unanag name', 'apelyido','A','MAKATI')

makukuha mo yan sa immediate window pag nag
DEBUG.PRINT strquery
ka
 
Re: [TUT] VB6 MSAccess Sample using ADO (UPDATED V3 20100216) now with ADD and DataRe

pacheck naman po sir.. uwi na po ako.. taz pakisabi na lang po sakin kung ano ang error.., cenxa na po hah.. di pa po kasi ako sanay maxado...thanks po.. nakaattach po..
 

Attachments

  • Grocery System.rar
    15.3 KB · Views: 32
Re: [TUT] VB6 MSAccess Sample using ADO (UPDATED V3 20100216) now with ADD and DataRe

pacheck naman po sir.. uwi na po ako.. taz pakisabi na lang po sakin kung ano ang error.., cenxa na po hah.. di pa po kasi ako sanay maxado...thanks po.. nakaattach po..

hahaha, classic.........

sa MSACCESS: KEYWORD ang "PASSWORD"
so di mo sya pwede gamitin sa SQL Query

all you need to do is to change all Fieldnames na "Password"
sa code at sa database into some other name like 'UserPassword'

the code is OK kaya ka nabubuwang kakadebug.

suggestions ko lang
try not to use other colors kasi nakakapanibago sa users mo
try to user the system colors and let then user change themes kung gusto nya.

pati sizes ng buttons mo, yung sayo mahaba at manipis, try to observe other programs kung gaano kalaki mga buttons nila
pati na rin yung placements

its good to know you are using ADODB, hwag lang basta copy ng code, try to understand how it flows para maski nakapikit ka kaya mo gawin.

this is how i debug my SQL Statements

attachment.php


just press F9 sa breakpoint then run, mag stop ang execution sa line na yan,
then you can print variables para makita mo ang actual values nila
like this
? strQuery

in the case of MSACCES, i just paste the SQLCommands sa new query window para ma test.

attachment.php
 

Attachments

  • Capture.PNG
    Capture.PNG
    48.4 KB · Views: 62
  • Capture2.PNG
    Capture2.PNG
    81.7 KB · Views: 56
Re: [TUT] VB6 MSAccess Sample using ADO (UPDATED V3 20100216) now with ADD and DataRe

argh sir salamat sa thread na to haha na babaliw ako sa saya mga gusto kong malaman and2 lang pala hehe

kung my net lang sana sa bahay hehe

basahin ko ulit cmula sa upisa para matry ko at baka my same question ako n nasagot n hehe salamat tlga sir
 
Re: [TUT] VB6 MSAccess Sample using ADO (UPDATED V3 20100216) now with ADD and DataRe

argh sir salamat sa thread na to haha na babaliw ako sa saya mga gusto kong malaman and2 lang pala hehe

kung my net lang sana sa bahay hehe

basahin ko ulit cmula sa upisa para matry ko at baka my same question ako n nasagot n hehe salamat tlga sir

aralin mo mabuti yung code, sa abot ng makakaya mo,
google the terms you dont know
then ask mga topics na di mo maintindihan

mabuti kasing maunawaan muna yung buong concept lalo ng ADODB bago ka sumabak sa coding
 
Re: [TUT] VB6 MSAccess Sample using ADO (UPDATED V3 20100216) now with ADD and DataRe

aralin mo mabuti yung code, sa abot ng makakaya mo,
google the terms you dont know
then ask mga topics na di mo maintindihan

mabuti kasing maunawaan muna yung buong concept lalo ng ADODB bago ka sumabak sa coding



uu nga sir.. my suggestion pla ako sir kaso lang kasi di ko pa nkkita examples m eh hehe... pero ang suggestion ko kung pwede po sana gawa ka p ng mas basic sample kasi my mga nabasa ako n sumusuko na hehe un lng nmn po pero d ko p kc nkikita kaya follow up ko n lang hehe if ok lang sir ahh

uwi na ako sir haha ala net sa bahay e hhehe
 
Re: [TUT] VB6 MSAccess Sample using ADO (UPDATED V3 20100216) now with ADD and DataRe

uu nga sir.. my suggestion pla ako sir kaso lang kasi di ko pa nkkita examples m eh hehe... pero ang suggestion ko kung pwede po sana gawa ka p ng mas basic sample kasi my mga nabasa ako n sumusuko na hehe un lng nmn po pero d ko p kc nkikita kaya follow up ko n lang hehe if ok lang sir ahh

uwi na ako sir haha ala net sa bahay e hhehe

kung puro simple nalang ang samples kelan pa tayo mag iimprove sa programming knowledge natin?

besides, learning the basics will be your responsibility
what im offering are codes used in a professional environment
na maski prof nyo di ginagamit

those code tha im putting here are tried and tested codes in vb
na nagawa ko na mga 10yrs ago pa,
galing yan a constant improvement at paghahanap ng best ways sa code.

di ko na kayang gumawa ng mga simpleng samples dahil malaking oras na ang mauubos nyan sakin
what i put here are codes that i actually use

code that are actually used right now ng mga malalaking banko at companies na ginawan ko ng system

my codes and projects are better thatn the previous projects thats why ang makikita mo dito ay mga naimprove na ng husto.

there are other sites for you to learn the basics
but here i sgest learn the basics first then if you want to imrove your craft tutulungan kitang matuto.

actually what you can get here are also basic
basic database operations, iba nga lang ang pamamaraan ng pag gawa.
 
Re: [TUT] VB6 MSAccess Sample using ADO (UPDATED V3 20100216) now with ADD and DataRe

thanks otor.. cge, try kong magreview ng mga ibang application.. di pa kasi ako masyadong sanay kaya ganun ang mga button ko...

hay, un lang pala otor, nabaliw ako kanina sa kadedebug... hehehhehe, thanks ng marami..
 
Re: [TUT] VB6 MSAccess Sample using ADO (UPDATED V3 20100216) now with ADD and DataRe

kung puro simple nalang ang samples kelan pa tayo mag iimprove sa programming knowledge natin?

besides, learning the basics will be your responsibility
what im offering are codes used in a professional environment
na maski prof nyo di ginagamit

those code tha im putting here are tried and tested codes in vb
na nagawa ko na mga 10yrs ago pa,
galing yan a constant improvement at paghahanap ng best ways sa code.

di ko na kayang gumawa ng mga simpleng samples dahil malaking oras na ang mauubos nyan sakin
what i put here are codes that i actually use

code that are actually used right now ng mga malalaking banko at companies na ginawan ko ng system

my codes and projects are better thatn the previous projects thats why ang makikita mo dito ay mga naimprove na ng husto.

there are other sites for you to learn the basics
but here i sgest learn the basics first then if you want to imrove your craft tutulungan kitang matuto.

actually what you can get here are also basic
basic database operations, iba nga lang ang pamamaraan ng pag gawa.


aun sir nkita ko na kagabi haha ng puyat akong intindihin lahat haha astig sir nakita ko ung paghihirap mo sa paggwa ng mga samples na to haha.. ASTIG haha hinahalukay ko pa ung mga notes ko at sites para mas lalu ko pa maintindihan ung mga samples mo hehe



tpos sir my tatanung dn pala ako kaso baka nextweek ko n ipost about dun add new astig kasi ung lumabas nung pinindot ko e haha...

salamat talga
 
Re: [TUT] VB6 MSAccess Sample using ADO (UPDATED V3 20100216) now with ADD and DataRe

ang galing2 naman..eto ang gusto kong matutunan..hahaha
 
Re: [TUT] VB6 MSAccess Sample using ADO (UPDATED V3 20100216) now with ADD and DataRe

otor., possible po ba na maglagay ng checkbox sa cell ng MSHFlexGrid? ung kahit scroll mo eh sumusunod?..
 
Re: [TUT] VB6 MSAccess Sample using ADO (UPDATED V3 20100216) now with ADD and DataRe

thanks boss.. ung image kaya sa cell with uniform size
 
Re: [TUT] VB6 MSAccess Sample using ADO (UPDATED V3 20100216) now with ADD and DataRe

ok po.. alm ko na.. cenxa kanina.., mobile kasi gamit ko.., thanks na rin..
 
Re: [TUT] VB6 MSAccess Sample using ADO (UPDATED V3 20100216) now with ADD and DataRe

otor., may tanong po ako dun sa image ko sa database ., ung ole object po., pano ko po ba icopy ung image na un sa isang table

dim oPhoto as variant
strQuery = "SELECT * FROM tblTapchangerGroup WHERE GroupID = " & nGroupID
Set rsADO = New ADODB.Recordset
rsADO.Open strQuery, cn, adOpenStatic, adLockPessimistic
oPhoto = rsADO("Photo1")

strQuery = "INSERT INTO tblPartsGroup (TitleID,Photo1,IncludedItem) VALUES('"
strQuery = strQuery & nTitleID & "'," & oPhoto & ", 0)"
nIncludedItem = 0
Set cmd = New ADODB.Command
cmd.ActiveConnection = cn
cmd.CommandText = strQuery
cmd.CommandType = adCmdText
cmd.Execute
 
Re: [TUT] VB6 MSAccess Sample using ADO (UPDATED V3 20100216) now with ADD and DataRe

nag-eerror po code ko., pakicheck naman po..
 
Re: [TUT] VB6 MSAccess Sample using ADO (UPDATED V3 20100216) now with ADD and DataRe

otor., may tanong po ako dun sa image ko sa database ., ung ole object po., pano ko po ba icopy ung image na un sa isang table

pwede mo sundan yung sa sample naman e, i save mo muna sa file then upload mo to another table.
naka specify naman dun kung papano magsave ng binary, which is using APPEND CHUNKS

or use EMBEDDED SELECT;
INSERT INTO table1(c1, photo1)VALUES('aa, (SELECT photo1 FROM Table2 WHERE...))

this way di na lalabas sa database ang field, direct na na kukunin ng query then i save

pero di ko sure kung supported ng access yan
 
Last edited:
Back
Top Bottom