msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

update dbase file

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Deployment
Author Message
JFB



Joined: 18 Jan 2008
Posts: 2

PostPosted: Fri Jan 18, 2008 3:15 pm    Post subject: update dbase file Reply with quote

Hi,
I have a connection to a dbase IV file using oledb. I wan to do an update to
a field using a vb function passing two parameters. These 2 parameters are
fields from the same table.
What is the sintax to do this?
Thanks

JFB

ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
filePath & ";Extended Properties=dBase IV"



Dim dBaseConnection As New
System.Data.OleDb.OleDbConnection(ConnectionString)

Try

dBaseConnection.Open()

Dim dBaseCommand As New System.Data.OleDb.OleDbCommand("update " & dbfFile &
" set Column4 = ?", dBaseConnection)

'? shouold be pass FSB(parameters)


dBaseCommand.ExecuteNonQuery()

Catch ex As Exception

MsgBox(ex.ToString)

Finally

dBaseConnection.Close()

End Try

Function FSB(ByVal inTrack As String, ByVal inRoute As String) As String

bla...bla....

End Function

Archived from group: microsoft>public>vb>deployment
Back to top
View user's profile Send private message
Ralph



Joined: 04 Oct 2007
Posts: 4148

PostPosted: Fri Jan 18, 2008 2:23 pm    Post subject: Re: update dbase file Reply with quote

"JFB" wrote in message$ReWIHA.1164@TK2MSFTNGP02.phx.gbl...
> Hi,
> I have a connection to a dbase IV file using oledb. I wan to do an update
to
> a field using a vb function passing two parameters. These 2 parameters are
> fields from the same table.
> What is the sintax to do this?
> Thanks
>

It appears you are using dotNet. This group is used by users of 'classic' vb
(vb6 and lower). You will get better responses if you post in a dotNet
newsgroup.

-ralph
Back to top
View user's profile Send private message
JFB



Joined: 18 Jan 2008
Posts: 2

PostPosted: Fri Jan 18, 2008 3:36 pm    Post subject: Re: update dbase file Reply with quote

Thanks for you reply, I will try vb.net then.
How you will do it in vb?
Rgds

JFB


"Ralph" wrote in message @TK2MSFTNGP04.phx.gbl...
>
> "JFB" wrote in message
> $ReWIHA.1164@TK2MSFTNGP02.phx.gbl...
>> Hi,
>> I have a connection to a dbase IV file using oledb. I wan to do an update
> to
>> a field using a vb function passing two parameters. These 2 parameters
>> are
>> fields from the same table.
>> What is the sintax to do this?
>> Thanks
>>
>
> It appears you are using dotNet. This group is used by users of 'classic'
> vb
> (vb6 and lower). You will get better responses if you post in a dotNet
> newsgroup.
>
> -ralph
>
>

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
file out of date, need to update when install the applicatio I have a program using VB 6 and Access 2000. One user has problem to install on any of her computers. She has Win 98, ME and Xp. I use PDW to create the installation computer is XP). During the installation, it will tell her that some

Update I have developed an application that is in use in many locations. The exe is on one machine on the LAN and the dll's and OCX's are installed on the workstations. I have published many updates of the application over years, and my customers have simply cop

Installing an update via code I would like my users to be able to download and unzip a file to replace the program they are currently running. The file they will download is a self extractiing file. I can download the file from the web within the program with no problem. The question

how to update dependecies files in VB5 Hi All, I have made a small application using VB5 (SP3), everything is Ok, but when I Package and Deployment wizard (PDW)I get a warning about several OCX's requiring update. I have no Idea how to do this. Can someone point out the obvious PLZ, all help w

Against sofware piracy! EXECryptor 2.034 update Recently the company SoftComplete Development launched the new revolutionary release of software code protection tool. This is large and important step in the software security technologies and in the struggle against software
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Deployment All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group