473,396 Members | 1,738 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,396 software developers and data experts.

(A2K) Strange behaviour on datasheet style subform - columns not binding correctly.

I added a new field to a table in the tables database. In the code
database, I added a new column for the new field to a datasheet
subform. I opened it in datasheet view and moved the column to the
position I wanted it. No records are returned by the form's query (it
has a "Where ID = -1" clause and the GoToRecord proc on the main form
changes the subform's recordsource).

When I opened the form and started adding data to the subform, data
from the new column was added to the wrong table field. Also, a proc
that executes an "Insert Into ... " query to do bulk adds put data for
the new column into the wrong field.

The form's query does not use tables directly, but uses them through
aliasing queries. e.g. qselSomething is "Select * From tblSomething".

I decompiled, compacted, recreated the datasheet subform's query and
the problem seems to have gone away.

Has anyone else seen this? Any explanations?

--
Regards.
Richard.
Nov 13 '05 #1
1 2280
I don't use datasheet views, so I'm not sure if this relates, but
occassionally I have found quirky behavior like this in form views. Try
deleting the form's recordsource, compiling and saving the form, then
replacing the recordsource line. Not sure how or why, but it "recompilies"
the form even when a decompile/compile fails to fix the glitch.
Darryl Kerkeslager
"Richard Sherratt" <ri**************@NOTHINGHEREbrunsley.com.au> wrote in
message news:c5********************************@4ax.com...
I added a new field to a table in the tables database. In the code
database, I added a new column for the new field to a datasheet
subform. I opened it in datasheet view and moved the column to the
position I wanted it. No records are returned by the form's query (it
has a "Where ID = -1" clause and the GoToRecord proc on the main form
changes the subform's recordsource).

When I opened the form and started adding data to the subform, data
from the new column was added to the wrong table field. Also, a proc
that executes an "Insert Into ... " query to do bulk adds put data for
the new column into the wrong field.

The form's query does not use tables directly, but uses them through
aliasing queries. e.g. qselSomething is "Select * From tblSomething".

I decompiled, compacted, recreated the datasheet subform's query and
the problem seems to have gone away.

Has anyone else seen this? Any explanations?

--
Regards.
Richard.

Nov 13 '05 #2

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

Similar topics

2
by: ivan | last post by:
I have a form (CustomerImfo) that has a subform within it (order). Within that subform is another subform (OrderDetail). That subform (OrderDetail) is displayed in Datasheet view. When I am...
4
by: MacDermott | last post by:
I have an Access 2000 form with a subform in Datasheet view. When I click on an item in the header of the subform (the title at the top of one of the columns), I'd like to be able to capture the...
2
by: LaurenW | last post by:
Hi Folks, I have an Access 2K form that includes a normally hidden subform linked in the normal way. For many months it ran perfectly and it still does except for one thing -- when we switch to...
13
by: Aladdin | last post by:
I have an MS Access form on which I have a listbox listing tables in that database. I want to be able to click on any of those tables and view its contents on the same form using subforms or any...
7
by: E | last post by:
I have encountered a very strange problem that is hard to describe, but hope someone has run across it. I have a form that shows a number of columns from a single table in the upper portion of...
1
by: s_wadhwa | last post by:
Hi, I have a main form "frmBldgFloor" and SubForm within the main form "fsubBldgFloor". In the SubForm the values in the text fields are being populated from a recordsource. I have these...
2
by: ghat12 | last post by:
Hi, I am trying to print a subform containing approx 50 columns in datasheet view. The printout cannot fit more than 8-10 columns. Does anyone know of any way to print all columns; i don't care...
5
by: Ian | last post by:
Hi everyone, I have found some bizarre (to me...!) behaviour of the Form_Activate function. I have a form which has a button control used to close the form and a subform with a datasheet view...
5
by: Deano | last post by:
I have five subforms each living in a page on a tab control. Each form is in datasheet view. The time has come to resize both the forms and the subforms. I am able to change the column widths...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.