Click here to Skip to main content
15,916,030 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to match between two images? Pin
Dr.Walt Fair, PE5-Jun-10 16:59
professionalDr.Walt Fair, PE5-Jun-10 16:59 
AnswerRe: How to match between two images? Pin
Anshul R8-Jun-10 20:02
Anshul R8-Jun-10 20:02 
AnswerRe: How to match between two images? Pin
mvdcorput11-Jun-10 22:57
mvdcorput11-Jun-10 22:57 
QuestionDRAWIMAGE to Print Image Pin
Anubhava Dimri5-Jun-10 2:08
Anubhava Dimri5-Jun-10 2:08 
AnswerRe: DRAWIMAGE to Print Image Pin
Luc Pattyn5-Jun-10 2:55
sitebuilderLuc Pattyn5-Jun-10 2:55 
GeneralRe: DRAWIMAGE to Print Image Pin
Anubhava Dimri6-Jun-10 18:45
Anubhava Dimri6-Jun-10 18:45 
GeneralRe: DRAWIMAGE to Print Image Pin
Luc Pattyn7-Jun-10 1:13
sitebuilderLuc Pattyn7-Jun-10 1:13 
QuestionGUID changes from immediate window to table? [modified] Pin
lemarshall4-Jun-10 17:08
lemarshall4-Jun-10 17:08 
My code for storing the data:
If Len(strJnts) > 0 Then
    _gblString = CreateGUIDString()

    gblConn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\JWI\Data\JWI.mdb;Jet OLEDB:Database Password=jWi;")

    strData = "INSERT INTO LOLItems (LOLItemsID, LOLIFormID, Type, TextBox, MaterialsID, Units, DateCreated )" _
    & " VALUES ('" & _gblString & "',  " _
    & "'" & _frmGuid & "', '" _
    & 1 & "',' " _
    & strName & "',' " _
    & _MATGuid & "',' " _
    & strJnts & "',' " _
    & Now() & "');"

    gblCMD.Connection = gblConn
    gblCMD.CommandText = strData
    Dim cmd As New System.Data.SqlClient.SqlCommand

    gblConn.Open()
    gblCMD.ExecuteNonQuery()
End If


The value of _MATGuid is gathered from the tag property of a label. In the immediate window:
? _MATGuid
"55368562-a5c5-429d-a491-e1bb24f37836"
? strdata
"INSERT INTO LOLItems (LOLItemsID, LOLIFormID, Type, TextBox, MaterialsID, Units, DateCreated ) VALUES ('{6b8da5a3-fbad-4140-af9a-2728a9e35af6}', '{a6a0e519-aa21-48b0-b26a-839caed800c7}', '1',' txtRodE_1',' 55368562-a5c5-429d-a491-e1bb24f37836',' 10',' 6/4/2010 9:47:40 PM');"

In Access the value for MaterialsID for the record ended up being:
{05F3C3FC-D57C-7047-0200-00000000E927} It is a Number field, ReplicationID, Indexed (Duplicates Allowed)

When I saved 14 record at a time I got the following- It seems like they are GUIDS being generated by Access as they are so similiar.
MaterialsID
{05A5C29C-D57C-7047-0500-00000000EA35}
{05A5C29C-D57C-7047-0100-000000009A3E}
{05A5C29C-D57C-7047-0400-000000001A48}
{05A5C29C-D57C-7047-0000-00000000BA28}
{05A5C29C-D57C-7047-0200-000000009A30}
{05A5C29C-D57C-7047-0200-000000009A43}
{05A5C29C-D57C-7047-0400-000000003A34}
{05A5C29C-D57C-7047-0000-00000000DA41}
{05A5C29C-D57C-7047-0300-000000002A45}
{05A5C29C-D57C-7047-0700-000000007A3B}
{05A5C29C-D57C-7047-0300-00000000AA31}
{05A5C29C-D57C-7047-0500-000000009A49}
{05A5C29C-D57C-7047-0600-000000007A39}
{05A5C29C-D57C-7047-0100-00000000BA2C}

The values that the _MatGuid SHOULD have been are shown below:
55368562-a5c5-429d-a491-e1bb24f37836
2fa63b3f-2399-4503-a1a6-91249c21bada
16221dca-6f9b-47ba-a733-b38e4f40ad96
526748be-209d-4cb2-abae-3e9fc6e188d3
aaecd995-dbb9-4bf0-a461-474b4cbe590f
3cf2864b-c1fd-4b46-b588-9c1d89d08eac
d131d5d7-b925-424d-b791-df2a322f0123
d06af1df-3233-495f-bd26-610dd09b1b12
b2b63ef0-42b5-4d80-9bfe-ced762db2e42
b7bbeaef-79d8-4b36-be69-26484f8e4fe5
002f9e90-3b33-4910-b18a-b80930ceb838
442b44fd-0427-433e-9d76-d0b3c79e279c
bbb3eca6-e71e-47b3-866d-b6795166b65f
a7e9f919-92d9-45db-a6c5-de1b7f393381

I don't see where or how it can get changed or corrupted.
Any suggestions greatly appreciated.
Larry

modified on Friday, June 4, 2010 11:26 PM

AnswerRe: GUID changes from immediate window to table? Pin
Dave Kreskowiak4-Jun-10 19:21
mveDave Kreskowiak4-Jun-10 19:21 
AnswerRe: GUID changes from immediate window to table? Pin
riced4-Jun-10 20:10
riced4-Jun-10 20:10 
QuestionApache configuration files parser Pin
Murr@y4-Jun-10 7:54
Murr@y4-Jun-10 7:54 
AnswerRe: Apache configuration files parser Pin
Dave Kreskowiak4-Jun-10 8:53
mveDave Kreskowiak4-Jun-10 8:53 
GeneralRe: Apache configuration files parser Pin
Murr@y4-Jun-10 18:38
Murr@y4-Jun-10 18:38 
GeneralRe: Apache configuration files parser Pin
Dave Kreskowiak4-Jun-10 19:16
mveDave Kreskowiak4-Jun-10 19:16 
QuestionVB.Net syntax. Pin
priyamtheone4-Jun-10 6:27
priyamtheone4-Jun-10 6:27 
AnswerRe: VB.Net syntax. Pin
Smithers-Jones4-Jun-10 7:42
Smithers-Jones4-Jun-10 7:42 
GeneralRe: VB.Net syntax. Pin
priyamtheone6-Jun-10 4:23
priyamtheone6-Jun-10 4:23 
AnswerRe: VB.Net syntax. Pin
mvdcorput11-Jun-10 23:02
mvdcorput11-Jun-10 23:02 
QuestionSingle Value Aggregation with PLINQ Pin
Agarwaen594-Jun-10 1:38
Agarwaen594-Jun-10 1:38 
AnswerRe: Single Value Aggregation with PLINQ Pin
Dave Kreskowiak4-Jun-10 8:38
mveDave Kreskowiak4-Jun-10 8:38 
GeneralRe: Single Value Aggregation with PLINQ Pin
Agarwaen596-Jun-10 5:40
Agarwaen596-Jun-10 5:40 
GeneralRe: Single Value Aggregation with PLINQ Pin
Dave Kreskowiak6-Jun-10 7:00
mveDave Kreskowiak6-Jun-10 7:00 
GeneralRe: Single Value Aggregation with PLINQ Pin
Agarwaen596-Jun-10 7:06
Agarwaen596-Jun-10 7:06 
GeneralRe: Single Value Aggregation with PLINQ Pin
Dave Kreskowiak6-Jun-10 8:27
mveDave Kreskowiak6-Jun-10 8:27 
QuestionParameter passing from a combo to Stored procedure Pin
Sabui4-Jun-10 1:10
Sabui4-Jun-10 1:10 

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.