Click here to Skip to main content
16,004,927 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Editable DataGridViewComboBoxColumn Pin
εїзεїзεїз16-Sep-09 19:33
εїзεїзεїз16-Sep-09 19:33 
GeneralRe: Editable DataGridViewComboBoxColumn Pin
C#Coudou16-Sep-09 23:46
C#Coudou16-Sep-09 23:46 
QuestionWrite to text file location ?? Pin
Bob Beaubien30-Aug-09 17:35
Bob Beaubien30-Aug-09 17:35 
AnswerRe: Write to text file location ?? Pin
Mycroft Holmes30-Aug-09 21:23
professionalMycroft Holmes30-Aug-09 21:23 
GeneralRe: Write to text file location ?? Pin
Bob Beaubien31-Aug-09 1:24
Bob Beaubien31-Aug-09 1:24 
GeneralRe: Write to text file location ?? Pin
Mycroft Holmes31-Aug-09 1:42
professionalMycroft Holmes31-Aug-09 1:42 
GeneralRe: Write to text file location ?? Pin
Bob Beaubien31-Aug-09 9:23
Bob Beaubien31-Aug-09 9:23 
QuestionUpdate button greyed out Pin
Buggedforever30-Aug-09 15:46
Buggedforever30-Aug-09 15:46 
I regret the inconvenience caused with the lengthy code pasted earlier.I'll put my query again.
I am using a front end to enter some records.However for a particular record the update button is greyed out.

code for update button.

Private Sub cmdUpdate0_Click()

Dim strAgreeStatus As String

Call m_frmParent.ZOrder(0)
strAgreeStatus = txtText0(idxMaintAgreeStatus).Text
If Edit_Neg > 0 Then
Exit Sub
End If
If Edit_Agree > 0 Then
Exit Sub
End If

On Error GoTo ERR_ROUTINE

Me.MousePointer = vbHourglass

If strAgreeStatus = "A" Then
m_objAgreement.DoFullEdits = "Y"
Else
m_objAgreement.DoFullEdits = "N"
End If

FMain.staMain.Panels(1).Text = ""

DoEvents

If ValidateAll0 > 0 Then
FMain.staMain.Panels(1).Text = "Unable to Update. Check fields in red."
GoTo SUBEND
End If

DoEvents

If m_objAgreement.Update < 1 Then
Call MsgBox("Agreement not found. " & vbCrLf & _
"", vbExclamation & vbOKOnly, "Unable to Update.")
Else
cboCombo0(idxMaintAgreementType).SetFocus
FMain.staMain.Panels(1).Text = "Update Successful."
End If

SUBEND:
cboCombo0(idxMaintAgreementType).SetFocus
Me.MousePointer = vbNormal

Exit Sub
ERR_ROUTINE:

If Err.Number = boAgreeErrRequired Then
Call MsgBox("Unable to Update. " & vbCrLf & vbCrLf & Err.Description, vbOKOnly, "Required Data Missing")
ElseIf Err.Number = boAgreeErrValidation Then
Call MsgBox("Unable to Update. " & vbCrLf & vbCrLf & Err.Description, vbOKOnly, "Data Validation Error")
Else
Call MsgBox("Unable to Update. " & vbCrLf & vbCrLf & Err.Description, vbOKOnly, "Error")
End If

Me.MousePointer = vbNormal

End Sub

Thanks in advance.
~Varun
AnswerRe: Update button greyed out Pin
Steven J Jowett30-Aug-09 21:18
Steven J Jowett30-Aug-09 21:18 
GeneralRe: Update button greyed out Pin
Buggedforever30-Aug-09 23:04
Buggedforever30-Aug-09 23:04 
GeneralRe: Update button greyed out Pin
Buggedforever31-Aug-09 19:55
Buggedforever31-Aug-09 19:55 
AnswerRe: Update button greyed out Pin
Mycroft Holmes30-Aug-09 21:19
professionalMycroft Holmes30-Aug-09 21:19 
GeneralRe: Update button greyed out Pin
Andy_L_J30-Aug-09 22:02
Andy_L_J30-Aug-09 22:02 
QuestionNumericupdown Pin
Shaahinm29-Aug-09 22:19
Shaahinm29-Aug-09 22:19 
AnswerRe: Numericupdown Pin
Alan N30-Aug-09 0:22
Alan N30-Aug-09 0:22 
GeneralRe: Numericupdown Pin
Shaahinm30-Aug-09 10:11
Shaahinm30-Aug-09 10:11 
AnswerRe: Numericupdown Pin
Luc Pattyn30-Aug-09 10:58
sitebuilderLuc Pattyn30-Aug-09 10:58 
GeneralRe: Numericupdown Pin
Shaahinm30-Aug-09 21:41
Shaahinm30-Aug-09 21:41 
GeneralRe: Numericupdown Pin
Luc Pattyn30-Aug-09 23:41
sitebuilderLuc Pattyn30-Aug-09 23:41 
QuestionPDF Creator Pin
Bob Beaubien29-Aug-09 17:36
Bob Beaubien29-Aug-09 17:36 
AnswerRe: PDF Creator Pin
Henry Minute30-Aug-09 1:57
Henry Minute30-Aug-09 1:57 
GeneralRe: PDF Creator Pin
εїзεїзεїз30-Aug-09 5:43
εїзεїзεїз30-Aug-09 5:43 
GeneralRe: PDF Creator Pin
Henry Minute30-Aug-09 6:54
Henry Minute30-Aug-09 6:54 
QuestionDrastical performance loss Pin
Sonhospa29-Aug-09 17:21
Sonhospa29-Aug-09 17:21 
AnswerResolved: Drastical performance loss Pin
Sonhospa29-Aug-09 22:01
Sonhospa29-Aug-09 22:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.