Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Close Connection

 
   Database Help (Home) -> Visual Basic RSS
Next:  Date comparison  
Author Message
TIML

External


Since: May 27, 2004
Posts: 3



(Msg. 1) Posted: Thu Jun 10, 2004 6:11 pm
Post subject: Close Connection
Archived from groups: microsoft>public>vb>database (more info?)

I have tried several ways with no success to close the connection to my
datasource. The following code is used to open the datasource and populate
an MS Datagrid.

frmA.Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=\\PlantMonitor1\Data\encoreiq.mdb;" & _
"Persist Security Info=False;Jet OLEDB:Database"
frmA.Adodc1.CommandType = adCmdText

frmA.Adodc1.RecordSource = "select LotJob as Lot, warehouse as [W/h], Bin,
creationdate as [Date Rec], " & _
"qtyonhand as [On Hand], [qtyonhand] - [qtytoship] as [Qty Free],
lotholdflag as [On Hold], Note, QtytoShip as [Ship Qty], " & _
"iif(isnull([ExpiryDate]),'',[ExpiryDate]) as [Expiry Date], lasttrndate as
[Last Transaction] from dbo_lotDetail where " & _
"stockcode = '" & Usc & "' and qtyonhand <> 0"

Set frmA.DataGrid1.DataSource = frmA.Adodc1
frmA.DataGrid1.Refresh

Tim

 >> Stay informed about: Close Connection 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Shared Database Connection? - I want to use an oracle odbc connection on my windows server for an application I am writing for client workstations. The result is I don't want to install the oracle client to get sql*net on every workstation i am running my the program on. What shoul...

sql query returns in wrong format - Hi, Hope someone can help me with this. I have MS SQL 2000 database where i have Table "PriceList" and there a column "Pricemk" wich is data type "money". All data in this column is in form "10001,35". So why when...

arrays - is there a way to concatenate the contents of an array (looping through the array) and storing each item in a comma delimited string? Thanks!

DataReport PageBreak - Hi everyone, I would like to know how to force pagebreak in a datareport for example after 5 records printed. Thank you all

Possible Use of a Cursor - I have a complex query that I hope I can explain it well enough for everyone to understand. I have a table that contains information for work instructions. Contained in the table are "MACHINE_PROC" these are groupings of machining processes....
   Database Help (Home) -> Visual Basic All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]