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!

ang gamit ko Crystal Report 10... pde din cguro makapag.connect ung crystal 4.6 kng gamit k ng ODBC
 
@sir eric,

ayaw talaga kumonek nung sa ODBC.. bakit po kaya ganun? sa client side ako gumawa ng ODBC para matest.. nababasa ng client side yung server, peo pagnagnext ako dun sa may username at password, ayaw naman kumonek.. tama naman ung username password na nilagay ko.. paano po ba gagawin ung sa port na sinasabi nio?
 
@sir eric,

ayaw talaga kumonek nung sa ODBC.. bakit po kaya ganun? sa client side ako gumawa ng ODBC para matest.. nababasa ng client side yung server, peo pagnagnext ako dun sa may username at password, ayaw naman kumonek.. tama naman ung username password na nilagay ko.. paano po ba gagawin ung sa port na sinasabi nio?

ano ang error message?
 
ah sir eric, napansin nyo ba yung aking follow-up post. may nilagay po ako dun na code.pa-assist lang po kung tama kasi di nagwork sa akin ang ginawa ko.
 
@sir eric pwede poh mag patulong kung pano gmawa ng forecasting demand..salamat po in advance..
 
ano ang error message?

eto po..

attachment.php
 

Attachments

  • Untitled-1.png
    Untitled-1.png
    25.3 KB · Views: 129
ah sir eric, basically ang ginawa ko pinag-aralan ko muna yung sample file nyo yung msflexgrid..

ginamit ko ang code nato sa pag delete ng row:

rsTable.Delete
DataGrid1.Refresh

at sa pag add ng row ay

MSFlexGrid1.Rows = MSFlexGrid1.Rows + 1

pero mukhang di kasi working dun sa sample nyo sir ang code na ni-research ko. paturo naman sir kung tama ba ang ginawa ko.
 

obviously nakalagay dyan na di makita yung SQLServer

SQLServer not Found, tama ba yung computer name or IP address ng SQLServer mo?
running ba yun service ng SQl sa host?


kontak mo ako sa YM para ma troubleshoot natin
 
ah sir eric, basically ang ginawa ko pinag-aralan ko muna yung sample file nyo yung msflexgrid..

ginamit ko ang code nato sa pag delete ng row:

rsTable.Delete
DataGrid1.Refresh

at sa pag add ng row ay

MSFlexGrid1.Rows = MSFlexGrid1.Rows + 1

pero mukhang di kasi working dun sa sample nyo sir ang code na ni-research ko. paturo naman sir kung tama ba ang ginawa ko.

tama yung pag add sa flexgrid
per bakit datagrid1 ang gamit mo?

sa flexgrid i specify mo lang sa Remove Method yung index ng ros maalis na yun

saka walang kinalaman ang recordset sa flexgrid kasi di naman databound.

magulo yung code mo, merong flexgrid at may datagrid pa, ano ba talaga?

pag datagrid as i said dati, yung recordset ang alisan mo ng row tapos i refresh mo kasi databound sya

sa flexgrid hinde kasi parang listview lang yan na di databound
 
Sir eric i have a problem panu po ba gagawin ku sa pRogram ku bale ganito po kasi siya mag fillfill-UP ng f0rm tapos pag ka save my c0mand din na print, ipriprint niya po yung mga nilagay sa form. Nakagawa na pu aku ng data rep0rts kaya lang ayaw gumana adodb pu gamit ku. Baka po may sample code kayo jan para mapag aralan ku. Badly needed po para sa thesis ku.
 
@ sir eric eto poh ung flow..logistics management sysytem po kc ung ganagawa kong system..start poh cia sa order ng client tpos delivery..ang pinapa forecast skin ung future na ang kkuning data eh galing sa privous data kung anoh ung pinaka mabentang product..un nlng poh kc ung kalung sa system..slamat poh ulit..god bless
 
sir eric...hahaha mali lang pag copy ko sa isang project ko....pero msflexgrid1 ang gamit ko tlga sorry mali lang.


index? di ko po nakuha sir kung papaano gamitin yun. mahina pa talaga po ang background ko. self study lang kasi. any way may na-research po ako sa pag delete pero ginamit nya ang autonumber bilang criteria sa pag delete.



Private Sub MSFlexGrid1_KeyUp(KeyCode As Integer, Shift As Integer)
Dim db As Database
Dim SQL As String
Dim rs As Recordset
Dim i As Long
Dim iStep As Integer
Dim strWhere As String
Dim RowCount As Integer
Dim Ans As String

Set db = OpenDatabase(App.Path & "\db1.mdb")

If KeyCode = vbKeyDelete Then
Me.MousePointer = vbHourglass
With MSFlexGrid1
If .Row > .RowSel Then
RowCount = (.Row - .RowSel) + 1
iStep = -1
Else
iStep = 1
RowCount = (.RowSel - .Row) + 1
End If

Ans = MsgBox("Are you sure you want to deleted the selected " & RowCount & " record(s)?", vbYesNo + vbCritical + vbDefaultButton2)

Select Case Ans
Case vbYes
MSFlexGrid1.Visible = False
For i = .Row To .RowSel Step iStep
If Len(strWhere) > 0 Then
strWhere = strWhere & " or "
End If

strWhere = strWhere & "AutoNumColumn = " & .TextMatrix(i, 1)
SQL = "DELETE From Table1 Where " & strWhere
db.Execute SQL
Next
db.Close
Me.MousePointer = vbNormal
Case vbNo
db.Close
Me.MousePointer = vbNormal
Exit Sub
End Select
End With

cmdRefresh_Click

MsgBox "Delete completed."
End If
End Sub





HUHA:


sir nakuha ko na papaano mag-delete ng specific row dun.

msflexgrid1.removeitem msflexgrid1.row lang pala. yes ayos.

pero sir pwede paturo ako sa editing ng cells at papaano maging editable ang cell kasi mejo nalito pa ako dun sa sample. pasensya na sir. need lang talaga ng assistance nyo.
 
Last edited:
Ang galing naman nito.. Pwede ba pagawa ng program/application na magsesend ng email sa Google Groups At Yahoo Groups? Or Kahit turuan nyo na lang ako? :lol: For example 1000 groups kailangan masendan ko sila lahat in 1 click lang..
 
mga bosing phelp dn nmn po ko sa payroll ko.print n lng ung problem ko..ehehe.ok nmn xa nagpriprint kaso kelangan p iexit ung program pra mkpg print ulit.pg magpprint kceh ulit ung unang nprint ung nlbas sa data report..huhu.phelp po...pdl po ng attachment..saka pla po ung sa form ng payslip pagssmhin ung last name at first name n field sa isang textbox..
 

Attachments

  • Payroll1.rar
    735.7 KB · Views: 57
Last edited:
suggestion lang po.

naisip ko lang na sana meron talagang basic tutorial na thread about vb6. tutorial na full code or project sample.

though appreciated naman talaga kapag post mo dito ang question then answer. lalo na kapag maraming nagtatanong, you just cant accomodate ulit ulit ang mga sagot sa previous questions na maaaring natanong na.


like simple questions or difficult ones like:


How to establish and connect to recordset?
How to add,edit,delete,update record?
How to move to records?
What is the proper procedure on unloading of forms/closing database?
How to connect to Access/mySQL/MSSql?
How to determine if connected to database?
What is the proper connection string to connect to this type of database?
How to use crystal reports in vb?

AT iba pa.....

Oo ang daming resources like google at vb sites, pero tingin ko kaya tayo nag popost ng dito ay di natin nakita sa mga nabanggit ang hinahanap doon.

Sana merong ganito.
 
Back
Top Bottom