Click here to Skip to main content
15,896,111 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: prime number Pin
Henry Minute15-May-09 11:55
Henry Minute15-May-09 11:55 
AnswerRe: prime number Pin
0x3c014-May-09 19:59
0x3c014-May-09 19:59 
QuestionDataset Question... Pin
smjunior0914-May-09 13:47
smjunior0914-May-09 13:47 
AnswerRe: Dataset Question... Pin
Johan Hakkesteegt17-May-09 20:35
Johan Hakkesteegt17-May-09 20:35 
QuestionEasy Datetime question... Pin
smjunior0914-May-09 9:28
smjunior0914-May-09 9:28 
AnswerDateTime Pin
Luc Pattyn14-May-09 9:45
sitebuilderLuc Pattyn14-May-09 9:45 
AnswerRe: Easy Datetime question... Pin
nlarson1114-May-09 11:17
nlarson1114-May-09 11:17 
QuestionEdit an existed record Pin
Manoucheka2714-May-09 9:11
Manoucheka2714-May-09 9:11 
This code works well but it does not allow me to make change on existed record. for example after I made some change on the data and go to save it it won't allow me. it is a duplicate. I want to be able to make change on existed data and still save. any idea!
Private Sub Save_Click()
On Error GoTo Err_Save_Click
'Dim answer As String
Me.AllowEdits = True
SOCSECNO.SetFocus

If IsNull(Me!InputDate) And IsNull(Me!FirstName) And IsNull(Me!LastName) And IsNull(Me!SocSec) And IsNull(Me!CompanyName) Then

MsgBox "All fields on this form are required"
Exit Sub
ElseIf IsNull(Me!InputDate) Then
MsgBox "An Input Date must be added", vbExclamation
Me!InputDate.SetFocus
ElseIf IsNull(Me!FirstName) Then
MsgBox "First name must be added", vbExclamation
Me!FirstName.SetFocus
ElseIf IsNull(Me!LastName) Then
MsgBox "A Last name must be added", vbExclamation
Me!LastName.SetFocus
ElseIf IsNull(Me!SocSec) Then
MsgBox "A Four Digit SS# must be added", vbExclamation
Me!SocSec.SetFocus
ElseIf IsNull(Me!CompanyName) Then
MsgBox "A Company Name must be added", vbExclamation
Me!CompanyName.SetFocus
ElseIf DCount("*", "[NOC]", "[LastName]= '" & Me![LastName] & "' And [FirstName] = '" & Me![FirstName] & "' And [SocSec] = '" & Me![SocSec] & "'") > 0 Then
Beep
MsgBox "This first and last name already exists in the database. Please check that you are not entering a duplicate constituent before continuing.", vbOKOnly, "Duplicate Value"
Cancel = True
Else
'ElseIf Form.Dirty = True Then DoCmd.RunCommand acCmdSaveRecord
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
MsgBox "Record is asved!"
End If
AnswerRe: Edit an existed record Pin
Dave Kreskowiak14-May-09 9:46
mveDave Kreskowiak14-May-09 9:46 
GeneralRe: Edit an existed record Pin
Manoucheka2715-May-09 8:02
Manoucheka2715-May-09 8:02 
QuestioniTextSharp set and flatten layers Pin
bkwooten14-May-09 8:08
bkwooten14-May-09 8:08 
AnswerRe: iTextSharp set and flatten layers Pin
Dave Kreskowiak14-May-09 9:43
mveDave Kreskowiak14-May-09 9:43 
GeneralRe: iTextSharp set and flatten layers Pin
bkwooten15-May-09 4:56
bkwooten15-May-09 4:56 
GeneralRe: iTextSharp set and flatten layers Pin
Dave Kreskowiak15-May-09 12:04
mveDave Kreskowiak15-May-09 12:04 
GeneralRe: iTextSharp set and flatten layers Pin
bkwooten18-May-09 5:48
bkwooten18-May-09 5:48 
QuestionMultiSelection combo gets hidden in a Frame Pin
Nitin198114-May-09 7:14
Nitin198114-May-09 7:14 
Questiondatatype [modified] Pin
Ankit Aneja14-May-09 5:48
Ankit Aneja14-May-09 5:48 
AnswerRe: datatype Pin
Dave Kreskowiak14-May-09 7:12
mveDave Kreskowiak14-May-09 7:12 
GeneralRe: datatype Pin
Zaegra14-May-09 8:56
Zaegra14-May-09 8:56 
GeneralRe: datatype Pin
Dave Kreskowiak14-May-09 9:33
mveDave Kreskowiak14-May-09 9:33 
GeneralRe: datatype Pin
Zaegra14-May-09 11:17
Zaegra14-May-09 11:17 
Questionplz help me in VB to drow in picture box Pin
laila_B14-May-09 4:43
laila_B14-May-09 4:43 
AnswerRe: plz help me in VB to drow in picture box Pin
scottgp14-May-09 4:49
professionalscottgp14-May-09 4:49 
GeneralRe: plz help me in VB to drow in picture box Pin
laila_B15-May-09 8:28
laila_B15-May-09 8:28 
AnswerRe: plz help me in VB to drow in picture box Pin
DidiKunz14-May-09 4:54
DidiKunz14-May-09 4:54 

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.