473,805 Members | 2,191 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can it be that NO ONE HERE knows this answer?

One more try.

After ransacking the Desktop AND Enterprise edition of Ken Getz Dev
Handbooks on Access 2002, I STILL don't know if it is or is not
possible to link a client side MDE with a WEB server MDB table using
ADO.

Does ANYONE know the correct answer to that question?
Mar 16 '06
47 1968
On 17 Mar 2006 11:29:44 -0800, "Lyle Fairfield"
<ly***********@ aim.com> wrote:
The quote ti which I referred is:

"You're asking if Access can retrieve data over HTTP with ADO?

The answer is NO."


Lyle, have you actually used the code you posted and succeeded in
reading and writing data to/from an MDB file on a web server?
Mar 17 '06 #21

Is this true of Access 2003?
On Fri, 17 Mar 2006 10:46:48 +1100, "david epsom dot com dot au"
<david@epsomdot comdotau> wrote:
From the A97 help:

"You cannot import or link a Microsoft Access database or an ODBC data
source on an FTP or HTTP server."

(david)
"Lauren Wilson" <no****@nospam. com> wrote in message
news:sd******* *************** **********@4ax. com...
One more try.

After ransacking the Desktop AND Enterprise edition of Ken Getz Dev
Handbooks on Access 2002, I STILL don't know if it is or is not
possible to link a client side MDE with a WEB server MDB table using
ADO.

Does ANYONE know the correct answer to that question?

Mar 17 '06 #22
I can think of no reason you can't run the ""exact"" code. The file is
there.

Writing Data will take a little longer. Maybe tomorrow.

Mar 17 '06 #23
Lauren Wilson <no****@nospam. com> wrote in
news:a4******** *************** *********@4ax.c om:
Interesting. If this works, it's exactly what I had in mind.
However, SOME people in this group are claiming this is not
possible. Hmmmm. Oh darn! Guess I'll have to just try it.


What Lyle is suggesting requires some intermediate tech between the
MDB and the ADO connection to create the XML stream. You asked about
ADO -> MDB, but Lyle is giving you a different answer.

It's basically no different than the XHTML answers others gave,
since it requires a server-side component to produce the XML.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Mar 17 '06 #24
Lauren Wilson <no****@nospam. com> wrote in
news:u9******** *************** *********@4ax.c om:
On 17 Mar 2006 11:29:44 -0800, "Lyle Fairfield"
<ly*********** @aim.com> wrote:
The quote ti which I referred is:

"You're asking if Access can retrieve data over HTTP with ADO?

The answer is NO."


Lyle, have you actually used the code you posted and succeeded in
reading and writing data to/from an MDB file on a web server?


What is running on the server to produce the XML? That's the part
Lyle has left out of the equation.

His answer leaves out the "from an MDB" part that is so crucial to
your original question.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Mar 17 '06 #25
"Lyle Fairfield" <ly***********@ aim.com> wrote in
news:11******** **************@ i39g2000cwa.goo glegroups.com:
I can think of no reason you can't run the ""exact"" code. The file is
there.

Writing Data will take a little longer. Maybe tomorrow.


We can write the data to a local file and upload it all with ADO only.

Sub RecordsetOnHttp ()
Dim r As ADODB.Recordset
Set r = New ADODB.Recordset
With r
.Open "http://ffdba.com/ffdbaAccounts.x ml", , adOpenKeyset,
adLockBatchOpti mistic
While Not .EOF
Debug.Print .Collect(1)
.MoveNext
Wend
.AddNew Array(1, 2, 3), Array(Format(No w, "yyyymmddhhnnss "), Null,
False)
If DoesFileExist19 97("ffdbaAccoun ts.xml") Then Kill
"ffdbaAccounts. xml"
.Save "ffdbaAccounts. xml", adPersistXML
End With
UploadFile "ffdbaAccounts. xml", "ffdbaAccounts. xml", "http://ffdba.com",
"UserName", "PassWord"
End Sub

Public Sub UploadFile( _
ByVal FromPath As String, _
ByVal ToFile As String, _
ByVal Server As String, _
Optional ByVal UserName As String, _
Optional ByVal PassWord As String)

Dim r As ADODB.Record
Dim s As ADODB.Stream
Set r = New ADODB.Record
Set s = New ADODB.Stream

r.Open Server & "/" & ToFile, , adModeWrite, adCreateOverwri te, ,
UserName, PassWord

With s
.Open r, , adOpenStreamFro mRecord
.Type = adTypeBinary
.LoadFromFile FromPath
.Close
End With

r.Close

End Sub

Public Function DoesFileExist19 97(ByVal FilePath As String) As Boolean
Const FileNotFoundErr Number As Long = 53
On Error GoTo DoesFileExist19 97Err
GetAttr FilePath
DoesFileExist19 97 = True
DoesFileExist19 97Exit:
Exit Function
DoesFileExist19 97Err:
With Err
If .Number <> FileNotFoundErr Number Then
MsgBox .Description, vbCritical, "Error Number: " & .Number
End If
End With
Resume DoesFileExist19 97Exit
End Function

I have added 3 records to the Recordset. It is quite interesting to see
how these are saved in the xml.

<snips>

<z:row AccountID='19' CommonName='Inc ome Tax' FormalDescripti on=''/>
<z:row AccountID='20' CommonName='Ter raware' FormalDescripti on=''
IncludeInSummar y='True'/>
<z:row AccountID='21' CommonName='Tem p'
FormalDescripti on='Temporary' IncludeInSummar y='True'/>
<rs:insert>
<z:row CommonName='New Name' IncludeInSummar y='False'
rs:forcenull='F ormalDescriptio n'/>
<z:row CommonName='200 60317211431' IncludeInSummar y='False'
rs:forcenull='F ormalDescriptio n'/>
<z:row CommonName='200 60317211440' IncludeInSummar y='False'
rs:forcenull='F ormalDescriptio n'/>
</rs:insert>

They are saved as inserts. If we (ever) retach this recordset to its
parent database and updatebatch it, these new records will be saved.

I do not know if my upload is redundant because the save could be made
directly to the http server.
I do not know if my file upload will work on a non-ms server.

But I do know that data can be accessed from, modified, added to, and
saved to an http server using only ADO. I have done it. The code is there
for you to see.

Yes, I know this is strictly flat file. Yes I know it’s not an mdb. Yes I
know that there is no simultaneous user safeguard whatever. BUT IT IS
DATA, IT IS ACCESSED WITH ADO, AND IT IS THROUGH HTTP.

Could I use and edit the recordset with a form? Sure, I could.
--
Lyle Fairfield
Mar 18 '06 #26
On Fri, 17 Mar 2006 19:54:34 GMT, rkc
<rk*@rochester. yabba.dabba.do. rr.bomb> wrote:
Lyle Fairfield wrote:
rkc wrote:

Your down right contempt for 90% of the people that post here is
becoming more apparent every day.

Should I run for President?


I thought Canada had a Queen.


They have quite a few "queens". Ever been to Montreal or Vancouver?
Mar 18 '06 #27
On Fri, 17 Mar 2006 15:40:15 -0600, "David W. Fenton"
<XX*******@dfen ton.com.invalid > wrote:
Lauren Wilson <no****@nospam. com> wrote in
news:a4******* *************** **********@4ax. com:
Interesting. If this works, it's exactly what I had in mind.
However, SOME people in this group are claiming this is not
possible. Hmmmm. Oh darn! Guess I'll have to just try it.


What Lyle is suggesting requires some intermediate tech between the
MDB and the ADO connection to create the XML stream. You asked about
ADO -> MDB, but Lyle is giving you a different answer.

It's basically no different than the XHTML answers others gave,
since it requires a server-side component to produce the XML.


I understand. However, I'm not sure why we couldn't just use XML all
the way.
Mar 18 '06 #28
If we can use XML instead of an MDB (probably better anyway), then
this appears to be what we need. Thanks a lot Lyle. I'm believe we
can adapt this approach to our needs. The amount of data we require
for this project component is VERY small -- maybe 3-4 fields per user.
Each user can have their own XML file with a name equal to their user
account number.
On Sat, 18 Mar 2006 02:30:56 GMT, Lyle Fairfield
<ly***********@ aim.com> wrote:
"Lyle Fairfield" <ly***********@ aim.com> wrote in
news:11******* *************** @i39g2000cwa.go oglegroups.com:
I can think of no reason you can't run the ""exact"" code. The file is
there.

Writing Data will take a little longer. Maybe tomorrow.


We can write the data to a local file and upload it all with ADO only.

Sub RecordsetOnHttp ()
Dim r As ADODB.Recordset
Set r = New ADODB.Recordset
With r
.Open "http://ffdba.com/ffdbaAccounts.x ml", , adOpenKeyset,
adLockBatchOpt imistic
While Not .EOF
Debug.Print .Collect(1)
.MoveNext
Wend
.AddNew Array(1, 2, 3), Array(Format(No w, "yyyymmddhhnnss "), Null,
False)
If DoesFileExist19 97("ffdbaAccoun ts.xml") Then Kill
"ffdbaAccounts .xml"
.Save "ffdbaAccounts. xml", adPersistXML
End With
UploadFile "ffdbaAccounts. xml", "ffdbaAccounts. xml", "http://ffdba.com",
"UserName", "PassWord"
End Sub

Public Sub UploadFile( _
ByVal FromPath As String, _
ByVal ToFile As String, _
ByVal Server As String, _
Optional ByVal UserName As String, _
Optional ByVal PassWord As String)

Dim r As ADODB.Record
Dim s As ADODB.Stream
Set r = New ADODB.Record
Set s = New ADODB.Stream

r.Open Server & "/" & ToFile, , adModeWrite, adCreateOverwri te, ,
UserName, PassWord

With s
.Open r, , adOpenStreamFro mRecord
.Type = adTypeBinary
.LoadFromFile FromPath
.Close
End With

r.Close

End Sub

Public Function DoesFileExist19 97(ByVal FilePath As String) As Boolean
Const FileNotFoundErr Number As Long = 53
On Error GoTo DoesFileExist19 97Err
GetAttr FilePath
DoesFileExist19 97 = True
DoesFileExist1 997Exit:
Exit Function
DoesFileExist1 997Err:
With Err
If .Number <> FileNotFoundErr Number Then
MsgBox .Description, vbCritical, "Error Number: " & .Number
End If
End With
Resume DoesFileExist19 97Exit
End Function

I have added 3 records to the Recordset. It is quite interesting to see
how these are saved in the xml.

<snips>

<z:row AccountID='19' CommonName='Inc ome Tax' FormalDescripti on=''/>
<z:row AccountID='20' CommonName='Ter raware' FormalDescripti on=''
IncludeInSumma ry='True'/>
<z:row AccountID='21' CommonName='Tem p'
FormalDescript ion='Temporary' IncludeInSummar y='True'/>
<rs:insert>
<z:row CommonName='New Name' IncludeInSummar y='False'
rs:forcenull=' FormalDescripti on'/>
<z:row CommonName='200 60317211431' IncludeInSummar y='False'
rs:forcenull=' FormalDescripti on'/>
<z:row CommonName='200 60317211440' IncludeInSummar y='False'
rs:forcenull=' FormalDescripti on'/>
</rs:insert>

They are saved as inserts. If we (ever) retach this recordset to its
parent database and updatebatch it, these new records will be saved.

I do not know if my upload is redundant because the save could be made
directly to the http server.
I do not know if my file upload will work on a non-ms server.

But I do know that data can be accessed from, modified, added to, and
saved to an http server using only ADO. I have done it. The code is there
for you to see.

Yes, I know this is strictly flat file. Yes I know it’s not an mdb. Yes I
know that there is no simultaneous user safeguard whatever. BUT IT IS
DATA, IT IS ACCESSED WITH ADO, AND IT IS THROUGH HTTP.

Could I use and edit the recordset with a form? Sure, I could.

Mar 18 '06 #29
On Fri, 17 Mar 2006 15:41:57 -0600, "David W. Fenton"
<XX*******@dfen ton.com.invalid > wrote:
Lauren Wilson <no****@nospam. com> wrote in
news:u9******* *************** **********@4ax. com:
On 17 Mar 2006 11:29:44 -0800, "Lyle Fairfield"
<ly********** *@aim.com> wrote:
The quote ti which I referred is:

"You're asking if Access can retrieve data over HTTP with ADO?

The answer is NO."
Lyle, have you actually used the code you posted and succeeded in
reading and writing data to/from an MDB file on a web server?


What is running on the server to produce the XML? That's the part
Lyle has left out of the equation.


I believe, in this case, all the XML can be generated on the client
end and simply stored on the server for future
retrieve/read/write/replace operations using code similar to what Lyle
posted.

Thanks for your counterpoint views.

His answer leaves out the "from an MDB" part that is so crucial to
your original question.


Lyle's willingness to think outside the box that I created has
revealed a possible solution that I had not yet considered. That
shift in perspective may result in a better solution than I originally
had in mind.
Mar 18 '06 #30

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2001
by: N3TB1N | last post by:
Here is my assignment. I am hoping that someone here quickly knows all of the correct answers... especially for question #5 and everything after. Thanks in advance. ___________________________________________________________________________________________________________________ class Money {
74
4066
by: Suyog_Linux | last post by:
I wish to know how the free()function knows how much memory to be freed as we only give pointer to allocated memory as an argument to free(). Does system use an internal variable to store allocated memory when we use malloc(). Plz help......
10
4856
by: Mike Wengler | last post by:
I inherited some code from a former employee, who was unable to cut the umbilical cord from VB6. His code is littered with calls to VB6 functions like Space(), String(), Left(), Mid(), Right(), Len(), Val(), etc. I know the .Net equivalents of everything except Val(). Int32.Parse allows you to filter out characters like "$" and "," and whitespace, but it still can't emulate the Val() function completely. Alright, who here in this...
1
879
by: Zorpiedoman | last post by:
Ok.... 1. Take a windows form. 2. Add a TabControl 3. Add a TabPage by right-clicking the Tabcontrol and selecting "Add Tab" The TabPage is actually added to the form, not just visually, but the code is added to the "Windows Form Designer generated code" region. I want to be able to do this myself with a control I created. In other words:
68
15722
by: James Dow Allen | last post by:
The gcc compiler treats malloc() specially! I have no particular question, but it might be fun to hear from anyone who knows about gcc's special behavior. Some may find this post interesting; some may find it off-topic or confusing. Disclaimers at end. The code samples are intended to be nearly minimal demonstrations. They are *not* related to any actual application code.
0
9718
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10109
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.