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

Continuous Forms Question

I have a form, set to "Continuous Forms" to kind of give that
spreadsheet feel, but I need it in a Form because my detail section
contains some buttons I need.

In my form header, I have an "Add New Record" button.

Here's my question. I want to get rid of that last empty line. The
one where when I start adding a new record, Access automatically drops
in a last blank to type in. The reason is that when someone clicks
"Add New Record", I populate some of the fields based on other open
forms. When they can just type in the next field, that populating
doesn't kick in... though I guess I could write the code to do that.
Was just wondering if there was a way to disable the showing of that
next blank record.

Feb 27 '06 #1
4 4437
Open your form in design view. open properties and go to the Data tab. Set
Allow Additions to No. This gets rid of the blank new record line. You won't
be able to add a new record at this point.

Where you click "Add New Record", add this code:
Me.AllowAdditions = True
You will now be able to add a new record.

Somewhere you will need to put this code:
Me.AllowAdditions = False

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
Over 1125 users have come to me from the newsgroups requesting help
re******@pcdatasheet.com
"igendreau" <ia**********@hermanmiller.com> wrote in message
news:11**********************@j33g2000cwa.googlegr oups.com...
I have a form, set to "Continuous Forms" to kind of give that
spreadsheet feel, but I need it in a Form because my detail section
contains some buttons I need.

In my form header, I have an "Add New Record" button.

Here's my question. I want to get rid of that last empty line. The
one where when I start adding a new record, Access automatically drops
in a last blank to type in. The reason is that when someone clicks
"Add New Record", I populate some of the fields based on other open
forms. When they can just type in the next field, that populating
doesn't kick in... though I guess I could write the code to do that.
Was just wondering if there was a way to disable the showing of that
next blank record.

Feb 27 '06 #2
It will vary a bit depending on Access version, but go into the form properties. In Access XP, you can set 'Allow Addtions' to no. VBA code can do it too..
igendreau<ia**********@hermanmiller.com> February 27, 2006 10:43:18 am >>>

I have a form, set to "Continuous Forms" to kind of give that
spreadsheet feel, but I need it in a Form because my detail section
contains some buttons I need.

In my form header, I have an "Add New Record" button.

Here's my question. I want to get rid of that last empty line. The
one where when I start adding a new record, Access automatically drops
in a last blank to type in. The reason is that when someone clicks
"Add New Record", I populate some of the fields based on other open
forms. When they can just type in the next field, that populating
doesn't kick in... though I guess I could write the code to do that.
Was just wondering if there was a way to disable the showing of that
next blank record.

Feb 27 '06 #3
Worked like a charm. Just changed my code to:

Me.AllowAdditions = True
DoCmd.GoToRecord , , acNewRec
ScopeID.Value = xScopeID
Me.AllowAdditions = False

Thanks!!

Feb 27 '06 #4
igendreau wrote:
Worked like a charm.


Um, Steve....

Time to change what you write for pseudonyms expressing appreciation....
You may also want to vary the newsreader as well...

8)
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Feb 27 '06 #5

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

Similar topics

5
by: Armando | last post by:
I recently saw the tail end of a "Continuous forms" discussion, but not enough was available to see if this will be a PITA repeat question. Sorry if it is. On a form with its Default View...
3
by: Richard Hollenbeck | last post by:
I have the following query in my form's code: Private Function Get_Data(fieldNum As Integer) Dim strSQL As String Dim db As DAO.Database Dim rs As DAO.Recordset strSQL = "SELECT & "", "" & ...
11
by: Doug Bell | last post by:
Hi, I am trying to create form that displays data like an Access continuous dataform rather than using a data grid. I am thinking that I can achieve this by creating a row of text boxes, one...
9
by: Edwinah63 | last post by:
Hi everyone, Please let there be someone out there who can help. I have two BOUND combo boxes on a continuous form, the second being dependent on the first. I have no problem getting the...
2
by: panwala_bhavesh | last post by:
Thanks in advance... I have a form displaying the results of a query in a continuous form style. I want to be able to double-click on the key field of the form (a textbox, in this case a AssetID)...
5
by: Michael R | last post by:
Searching the net I've found a simple technique to add row numbers and alternate colors (for the even and the uneven row) to a continuous form. 1st step: Create a textbox, send it to background...
1
by: blueheelers | last post by:
I have been researching for several hours on the best way to display images in continous forms in Access 2003. For example, I want to display employee name, email, phone, and picture for each...
5
by: Lyn | last post by:
I thought that in an earlier project I was able to click or double-click in the detail section of a row in a continuous form and use the event to open a detail form for that row. However, now a...
1
by: rpboll | last post by:
I am looking for the best way to accomplish the following continuous forms concept. There are Five Groups: A, B, C, D, E Each group has eight Members: a, b, c, d, e, f, g, h Each...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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,...

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.