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

Overspill records help!

16
Hi,
I'm having issues with a setup I'm using to hold data on certain lease numbers within a region. As it is, I have a set amount of information I want on one single record, and all overspill is recorded on the next record, and so forth, until all the info I have is accounted for.

What I want to do is have a quick reference on every record, aside from the normal page numbering system, which just counts how many records I have. I want to know how many different lease numbers I have, and I have created a note at the bottom of lease number and last name. For example I want to create:

LeaseNumber LeaseName
|
|
-Info-
|
|
Page#(of total printed on paper), Page#(of identical records)

so I might end up with
455633 Katz
|
|
55 of 180, 1 of 4

I can return the number of identical LeaseNumber fields by using Count and Dlookup, but denoting first second third pages is tricky.

Currently, I'm using an AfterUpdate event where, when the LeaseNumber is entered, it adds 1 to the PageCount field, where its default value is 0. However, if for some reason somebody changes or simply re-enters the LeaseNumber value, PageCount is no longer correct. What can I do to idiot-proof this?
Oct 24 '06 #1
4 1166
Tanis
143 100+
There's a property on the text box called 'Locked' Set this to yes. Just a question though, is this on a form or report. And if a form, why?
Oct 24 '06 #2
KelHemp
16
There's a property on the text box called 'Locked' Set this to yes. Just a question though, is this on a form or report. And if a form, why?
it's on a report and an identical form. The form is the one that's mostly screwy thanks to people updating the records. Why I feel I need it there (in the form) is because only half of the page numbering within is done automatically, the rest is after an update within the LeaseNumber field on the form. I can't set it to onCurrent, because it keeps adding to the page number every time I go back and look at the record if I do that.

Setting the Locked property of PageCount and LeaseNumber does keep someone from going in and editing after it's been entered, but is there a way to lock them as an AfterUpdate event?
Oct 24 '06 #3
MMcCarthy
14,534 Expert Mod 8TB
Expand|Select|Wrap|Line Numbers
  1.  
  2. Public Sub ControlName_AfterUpdate()
  3.  
  4. Me.ControlName.Locked = "Yes"
  5.  
  6. End If
  7.  
  8.  
Oct 25 '06 #4
KelHemp
16
Thank you! works great. It's not perfect, but it'll keep those little mistakes from ruining things. Now I have to work on keeping out those of us who think we know what we're doing!
Oct 25 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Steve Claflin | last post by:
I have a database with a moderate number of records in several tables (the biggest table at the moment is about 800 records). In development it got moved between 2K and XP repeatedly. Several...
3
by: Andre Doreid Berro | last post by:
Greetings All I have requested help before and I really need your help in this. I am working on an Access database of contacts. I have plenty of records but plenty of them are almost...
1
by: PMBragg | last post by:
ORINGINAL Post >Thank you in advance. I'm trying to pull all inventory items from December >of the previous year back to 4 years for my accountant. I know this can be >done, but I'm drawing a...
1
by: Liz | last post by:
I have a table of about 10,000 records where each record has a numeric field named RecIdent. The value of RecIdent starts at 1 and is not sequential. For a given RecIdent, there may be only one...
6
by: Paul T. Rong | last post by:
Dear all, Here is my problem: There is a table "products" in my access database, since some of the products are out of date and stopped manufacture, I would like to delete those PRODUCTS from...
13
by: Jan | last post by:
Hi I have a database that I use to keep track of the sales promotions that we send to companies. I normally send a mailing based on a subset of the companies in the database (found using the...
9
by: Sandy | last post by:
Hi all, I have a form to list records (frmListIssue) which I call from different other forms. My wish is to display a message when the form is called and empty; no records to display. I want to...
5
by: Kaur | last post by:
Hi, I have been successful copying a vba code from one of your posts on how to copy and paste a record by declaring the desired fields that needs to be copied in form's declaration and creating two...
0
by: Tomazas | last post by:
Hi All, I have very complex database and I am trying to build an Shaped SQL string with no success. Could anyone help me to answer how this would look like. TABLE LIST: Asset, Structure,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.