John's answer was the clearest one. Have a star!
My manager has decided to have the query done by the
second computer (not the one with ADODC and VB6). (Gee,
thanks.)
I'm using VB6 and ADODC to manipulate an ACCCESS 2000
database. From time to time, I wish to check the database
for old data.
As the database may range up to 30,000, I'd like to
see only those that have the same (OwnerCode & SerialNumber)
or have LatestScan < a certain date. OwnerCode &...
Yup! After placing a MsgBox, I discovered that I had misnamed "Txt_Owner.Text" to its fullname,
"Txt_OwnerCode.Text". After correcting this error, it now works great! Have a second star!
Modified per your request, but now I'm getting an error
message from VB6 compiler "Run-time error '424' : Object required."
Temporarily changed it back to "OOOO", and didn't get
the error message.
As you're using MSComm, I assume you're using VB6 or VBNet.
1) Can you exchange I/O using the free HYPERLINK? (It
should be under Start|Programs|Accessories.)
This should ensure that you're using the proper
type of cable (regular PC-to-modem or PC-to-PC)
and...
OK. The Adodc1.Recordset.Delete works 100%.
The Cmd_ModifyRecord|Click procedure works only when I
pass it a piece of text directly, ie.
Adodc1.RecordSet.Update "OwnerCode", "OOOO"
"OwnerCode" is just the name of the field that I wish to
alter...
Look, let's keep this simple!
Using "cmd_ScrollUp_MouseDown" and cmd_Scrolldown_MouseDown", I have already selected the particular record that I wish to delete or change a field in. I even have stored the value of this particular record
in a global variable.
Now I wish to...
I've corrected my syntax to uniformly refer to CRTable1.mdb, not ".mde" at times.
Also, I don't always want to delete a record, sometimes
I just want to change just one of its fields.
Tom Ng
I've modified the code to:
Private Sub cmd_DeleteRecord_Click
Dim cmdDelete As New ADODB.Command
Dim str_Conn As String
str_Conn = "Provider=Microsoft.Jet.OLEDB.4.0" &
DataSource=C:\Access VBA Practice _Files\CCRTable1.mde;Persist Security Info=False"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.