PC Review


Reply
Thread Tools Rate Thread

Current Record Count, Previous Record #, Add New Record

 
 
=?Utf-8?B?Um9iZXJ0IE51c3ogQCBEUFM=?=
Guest
Posts: n/a
 
      15th Feb 2005
I have a form with sub form for data entry. Linked together by master &
child primary key using combination of 2 fields for primary key. These
fields and values example are "CASE_YEAR" and value of 2004 and CASE_NUM and
value of 100, final key is 2004100. Field SEQ_NUM is added to secondary
table to differentiate between mutiple secondary records matching 1 primary
table record.

Primary table name is TST_FR_CASE_RECORDS
Secondary table name is TST_FR_CASE_OTHERS

Entry program works fine. But I have a problem sequencing numbers for these
tables when in UPDATE mode. User enters CASE number in form, table is
searched for match, when match found, is displayed in DATA ENTRY Mode = NO
form.

I want the user to be able to scroll with scroll arrows in record navigation
bar to
previous and next records, but at the same time to have current record show
on sub form along with an unbound text box reflecting previous record
SEQ_NUM.
This unbound text field is called unbtxt_PREV_SEQ_NUM.

If user is on actual record Number 5 and previous record use was on was 4
then the
form would show current record SEQ_NUM of 5 for current record and 4 for
unbtxt_PREV_SEQ_NUM.

If user scrolls backwards, current record SEQNUM would be 4 and
unbtxt_PREV_SEQ_NUM would show 5. etc.

Also need to be able to add new records in update mode with ether an ADD NEW
RECORD COMMAND BUTTON or using >* arrow at navigation bar, and still be able
to keep SEQ_NUM current. When using DMAX on this function, I always get 21
in SEQ_NUM value instead of 6 if 6 would have been my next record.

I'm not VB code literate and would appreciate any information that could
resolve my deliema.

Thanks,
--
Robert Nusz @ DPS
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
3-Color Scale Vlookup for Current Month/Previous/Pre-Previous NeoFax Microsoft Excel Misc 2 8th Jan 2010 08:04 PM
Add Previous record to Current record broogle Microsoft Access Queries 3 21st Jun 2006 09:20 AM
Default "add record" button edits current record, doesn't add new =?Utf-8?B?RWxpemFiZXRoIFN3b29wZQ==?= Microsoft Access Form Coding 0 19th Jun 2006 11:21 PM
How to get the value in previous record to current record? Praveen Manne Microsoft Access 4 21st Jun 2004 09:54 PM
Data from previous record displayed in current record D Collins Microsoft Access Forms 0 21st Nov 2003 01:38 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:21 PM.