473,398 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Access 2000 Form Does Not Return Data After Upsize to Project

upsized an MDB to ADP/SQL Server 2000 under Access 2000. All the DAO code
that I've changed to ADO code is working fine, HOWEVER the form Record
Source itself does not seem willing to return data. I've set the Record
Source to both the query, and the SQL contained within the query, and
although the system pauses long enough to have gone out and retrieved the
data, I can't see it. The form itself remains gray. In addition:

DoCmd.GoToRecord, ,acNewRecord

gives a error #2105 Unable to move to Record. (I'm trying to add a new
record here.) Yes, AllowAdditions and all other allows are set True on my
form, and permissions on SQL Server seem correct, especially since I can see
the data otherwise.

Furthermore, if I try to get the recordset so that I can manipulate it
myself in ADO with:

Dim MyRS as ADODB.Recordset
Set MyRS = me.recordset

The MyRS.recordcount is 0, and both BOF and EOF are True. (Note I've tried
doing this in both the form Open and Load events, where the data should have
already arrived. In those same events I can do the following without
problem:

Dim adoTest As New ADODB.Recordset
adoTest.Open "qryCertificates", CurrentProject.Connection, adOpenKeyset,
adLockOptimistic, adCmdStoredProc

The test dataset shows all the records present, and I can do an .AddNew with
no problem. This form has literally dozens of controls and some events tied
to the form-based recordset which is why I want to use what Access provides
here, and I'm fast running out of time on this. Of course I didn't write it
this way to start with, but it's mine to maintain now.

Can anyone offer any suggestions on why my form RecordSource seems to be
hitting my SQL database, yet not making any data available on its return?

Thanks!

*David*
Nov 13 '05 #1
2 2004
I had a similar problem Eventually traced it to data integrity issues
relating to Primary Key.
"David C. Barber" <da***@NOSPAMdbarber.com> wrote in message
news:2N********************@comcast.com...
upsized an MDB to ADP/SQL Server 2000 under Access 2000. All the DAO code
that I've changed to ADO code is working fine, HOWEVER the form Record
Source itself does not seem willing to return data. I've set the Record
Source to both the query, and the SQL contained within the query, and
although the system pauses long enough to have gone out and retrieved the
data, I can't see it. The form itself remains gray. In addition:

DoCmd.GoToRecord, ,acNewRecord

gives a error #2105 Unable to move to Record. (I'm trying to add a new
record here.) Yes, AllowAdditions and all other allows are set True on my
form, and permissions on SQL Server seem correct, especially since I can
see
the data otherwise.

Furthermore, if I try to get the recordset so that I can manipulate it
myself in ADO with:

Dim MyRS as ADODB.Recordset
Set MyRS = me.recordset

The MyRS.recordcount is 0, and both BOF and EOF are True. (Note I've
tried
doing this in both the form Open and Load events, where the data should
have
already arrived. In those same events I can do the following without
problem:

Dim adoTest As New ADODB.Recordset
adoTest.Open "qryCertificates", CurrentProject.Connection,
adOpenKeyset,
adLockOptimistic, adCmdStoredProc

The test dataset shows all the records present, and I can do an .AddNew
with
no problem. This form has literally dozens of controls and some events
tied
to the form-based recordset which is why I want to use what Access
provides
here, and I'm fast running out of time on this. Of course I didn't write
it
this way to start with, but it's mine to maintain now.

Can anyone offer any suggestions on why my form RecordSource seems to be
hitting my SQL database, yet not making any data available on its return?

Thanks!

*David*

Nov 13 '05 #2
Found my problem too. In my case the Data Entry property of the Form was
set True. Even though it was also True in the MDB version, it acts a whole
lot different in an ADP. You don't get any records, hence the problem with
DoCmd.GoToRecord, and the screen stays gray, though that may partly be
another problem.

Also, some rather sloppy queries had been used in the MDB (written by
someone prior to myself). I'll tell you something folks, SQL Server doesn't
let you get away anything like you get used to doing in Access.

And the Upsize Wizard isn't smart enough even to change the Access wildcard
character "*" (used in LIKE comparisons) to the SQL Server "%" wildcard
character.

At least my screens come up now.

And although the auto completion function of Access stops at:
"me.Recordset", you can still type in "me.Recordset.Recordcount" and other
ADO functions and they seem to work just fine.

Live, and learn.

*David*

"chris smith" <ch***@bitsltd.co.uk> wrote in message
news:co**********@sparta.btinternet.com...
I had a similar problem Eventually traced it to data integrity issues
relating to Primary Key.
"David C. Barber" <da***@NOSPAMdbarber.com> wrote in message
news:2N********************@comcast.com...
upsized an MDB to ADP/SQL Server 2000 under Access 2000. All the DAO code that I've changed to ADO code is working fine, HOWEVER the form Record
Source itself does not seem willing to return data. I've set the Record
Source to both the query, and the SQL contained within the query, and
although the system pauses long enough to have gone out and retrieved the data, I can't see it. The form itself remains gray. In addition:

DoCmd.GoToRecord, ,acNewRecord

gives a error #2105 Unable to move to Record. (I'm trying to add a new
record here.) Yes, AllowAdditions and all other allows are set True on my form, and permissions on SQL Server seem correct, especially since I can
see
the data otherwise.

Furthermore, if I try to get the recordset so that I can manipulate it
myself in ADO with:

Dim MyRS as ADODB.Recordset
Set MyRS = me.recordset

The MyRS.recordcount is 0, and both BOF and EOF are True. (Note I've
tried
doing this in both the form Open and Load events, where the data should
have
already arrived. In those same events I can do the following without
problem:

Dim adoTest As New ADODB.Recordset
adoTest.Open "qryCertificates", CurrentProject.Connection,
adOpenKeyset,
adLockOptimistic, adCmdStoredProc

The test dataset shows all the records present, and I can do an .AddNew
with
no problem. This form has literally dozens of controls and some events
tied
to the form-based recordset which is why I want to use what Access
provides
here, and I'm fast running out of time on this. Of course I didn't write it
this way to start with, but it's mine to maintain now.

Can anyone offer any suggestions on why my form RecordSource seems to be
hitting my SQL database, yet not making any data available on its return?
Thanks!

*David*


Nov 13 '05 #3

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

Similar topics

4
by: Kevin Myers | last post by:
Hello, Please forgive my reposting of this note with hopefully a more relevant subject line. On an Access 2000 form under Windows 2000 I would like to use a Kodak Image Edit Control to...
1
by: Ellis | last post by:
I have created a form in Access with several controls that have drop downs for the user to choose. I now need to create a record in the table for every combination (eg. one option in a drop down...
2
by: collegekid | last post by:
Hi everyone, basically my problem is this: I am using an Access 2000 format. And--I have four subforms in my main form. (Purpose of this is to track projects.) So in my main form I enter the...
3
by: boliches | last post by:
I am trying to display data using SELECT on "Form Open" to text boxes, but am failing! ie: Data = "SELECT * FROM tblInvoice" Combo1 = Combo1.RowSource = Data Combo1 = Combo1.ItemData(0) Text2...
3
by: emajka21 | last post by:
Hello, and thank you in advance for trying to help me. I am trying to create an access 2000 form without using the wizard. It just doesn't seem like I can the level of complexity I want out of the...
0
by: John Kirkpatrick | last post by:
Hi all, I am having difficulty displaying records on a frontend MS Access 2000 form using a MySQL backend. The following code works well with the Jet database engine but doesn't work properly...
2
by: dwakefield | last post by:
I have a subform TP which is called from another form Patients. When I close form TP it goes back to form Patients and then immediately I'm in a loop going between the 2 forms. I use docmd.close to...
2
ollyb303
by: ollyb303 | last post by:
Hi, My colleague has a db with a form linked to a table. On the form is (among many other things) a checkbox and textbox. When the checkbox is checked, the value in the textbox should be 37.5, and...
2
by: D Biegert | last post by:
While in Forms View, a coworker inadvertantly selected Records/Data Entry and it set her form back at record #1 and erased all data from Form View. She still has access to the data in the Datasheet...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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,...

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.