Click here to Skip to main content
15,913,587 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how to display files that are not in directory? Pin
zaimah11-Jan-09 17:26
zaimah11-Jan-09 17:26 
GeneralRe: how to display files that are not in directory? Pin
Luc Pattyn11-Jan-09 18:32
sitebuilderLuc Pattyn11-Jan-09 18:32 
GeneralRe: how to display files that are not in directory? Pin
zaimah11-Jan-09 21:14
zaimah11-Jan-09 21:14 
GeneralRe: how to display files that are not in directory? Pin
Luc Pattyn12-Jan-09 2:24
sitebuilderLuc Pattyn12-Jan-09 2:24 
QuestionRetrieve last ID from SQl server Pin
Jodd2-Jan-09 13:15
Jodd2-Jan-09 13:15 
AnswerRe: Retrieve last ID from SQl server Pin
Mycroft Holmes2-Jan-09 15:35
professionalMycroft Holmes2-Jan-09 15:35 
AnswerRe: Retrieve last ID from SQl server Pin
N a v a n e e t h2-Jan-09 15:51
N a v a n e e t h2-Jan-09 15:51 
AnswerRe: Retrieve last ID from SQl server Pin
TheComputerMan3-Jan-09 4:44
TheComputerMan3-Jan-09 4:44 
Don't know if this will be of any help as it is gathered from a stored procedure....

This is (part) of the stored procedure
                             ......
           ,@NoteField
           ,@UDField1
           ,@UDField2
           ,@UDField3
           ,@UserName)

DECLARE @NewID int
SET @NewID = SCOPE_IDENTITY()

INSERT INTO [dbo].[CON_tbl_ContactPictures]
           ([ID]
           ,[ContPict])
     VALUES
           (@NewID
           ,NULL)

SELECT @NewID AS [ID]


I use SCOPE_IDENTITY to make an entry into another table, so to do that I need to make a variable.

When I have done that action the value is the returned to my VB code

'This is a brand new insert so we can get the Contact ID back from it.
dtblData = cDB.GetDataTableFromProc(listParams)
If Not dtblData Is Nothing Then
    If dtblData.Rows.Count > 0 Then
        Dim drowData As DataRow
        drowData = dtblData.Rows(0)
        ContactID = drowData("ID")
        drowData = Nothing
    Else


Please ignore the strange call to get the table and assume this is a normal Fill(DataTable). It would take too long to explain why I have to do it thsis way!!

The important part is the following code after that.
AnswerRe: Retrieve last ID from SQl server Pin
TheComputerMan3-Jan-09 4:49
TheComputerMan3-Jan-09 4:49 
QuestionLost Feature in VB Pin
udatl2-Jan-09 10:57
udatl2-Jan-09 10:57 
AnswerRe: Lost Feature in VB Pin
Fabio V Silva2-Jan-09 12:04
Fabio V Silva2-Jan-09 12:04 
GeneralRe: Lost Feature in VB Pin
udatl2-Jan-09 16:25
udatl2-Jan-09 16:25 
GeneralRe: Lost Feature in VB Pin
TheComputerMan3-Jan-09 4:28
TheComputerMan3-Jan-09 4:28 
QuestionWant to add a comboboxcolumn runtime and pass value to the comboboxcolumn runtime Pin
Nattumakkan2-Jan-09 5:37
Nattumakkan2-Jan-09 5:37 
AnswerRe: Want to add a comboboxcolumn runtime and pass value to the comboboxcolumn runtime Pin
TheComputerMan2-Jan-09 6:46
TheComputerMan2-Jan-09 6:46 
AnswerRe: Want to add a comboboxcolumn runtime and pass value to the comboboxcolumn runtime Pin
dan!sh 2-Jan-09 8:26
professional dan!sh 2-Jan-09 8:26 
QuestionFile in use error Pin
TheComputerMan2-Jan-09 5:04
TheComputerMan2-Jan-09 5:04 
AnswerRe: File in use error Pin
Jon_Boy2-Jan-09 5:11
Jon_Boy2-Jan-09 5:11 
GeneralRe: File in use error Pin
TheComputerMan2-Jan-09 5:21
TheComputerMan2-Jan-09 5:21 
GeneralRe: File in use error Pin
Jon_Boy2-Jan-09 5:30
Jon_Boy2-Jan-09 5:30 
GeneralRe: File in use error Pin
TheComputerMan2-Jan-09 6:24
TheComputerMan2-Jan-09 6:24 
GeneralRe: File in use error Pin
Jon_Boy2-Jan-09 7:04
Jon_Boy2-Jan-09 7:04 
GeneralRe: File in use error Pin
Christian Graus2-Jan-09 5:45
protectorChristian Graus2-Jan-09 5:45 
GeneralRe: File in use error Pin
TheComputerMan2-Jan-09 6:22
TheComputerMan2-Jan-09 6:22 
GeneralRe: File in use error Pin
Luc Pattyn2-Jan-09 7:00
sitebuilderLuc Pattyn2-Jan-09 7:00 

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.