473,500 Members | 1,822 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VBA is rusty need to lookup last line of a table for ref. in form

1 New Member
I am using a form to update information in my database.

I have three tables. The database references which dvd's user profiles are backed up on. Since some backups go across multiple disks I have a series number along with a disk reference number. So if a user backup takes more than one disk I simply keep counting up in my disk reference and stop counting for my series number.

Also if there is more than one user on a disk then I can stop counting up on the disk reference but continue to count up on my series number.

The easiest way to make sure I can update the databases without issue is to have two text boxes on the form that, when I open the form, reference the last Series# in my series table, and the last name and first name from my employees table where i use employee number to reference the employee table.

Then after I input the new record via the form the textboxes would update with the new information?

I am familiar with Vb.net but VBA in access is throwing off my mojo.

Attached Images
File Type: jpg dbaseinfo.jpg (36.8 KB, 225 views)
Oct 10 '13 #1
2 1139
NeoPa
32,557 Recognized Expert Moderator MVP
Is there a question in here somewhere (Rhetorical - there seems to be none.)? We don't deal with simple job specs.

If you have a specific question to ask on this then please go ahead.
Oct 13 '13 #2
zmbd
5,501 Recognized Expert Moderator Expert
Thnxs Neopa,
Read thru this like six times, finally added the whitespace to the the post and still didn't find the question.

@badbane
What I don't get is why not have a single table with the customer information.
Then in the second table you have a simple entry that has the disk id and the customer id.
One entry for each disk with each customer on that disk?
Then the query would be simple... want all of the disks with a given customer, then, query on the customer id.
Add a date to this record and then one can filter down by date and customer...
Same idea by searching on the disk id, in that such would return the customers on that disk.
Only need is to increment the disk id as each new disk is used.
With what you describe, you can use an agregate query to return the maximums of the fields; however, these can have a few hickups to fix before the correct data is returned.
Would help to have: Tables, fields(datatype), relationship (if any) to other table(s).
Oct 13 '13 #3

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

Similar topics

3
2912
by: josh dismukes | last post by:
/// here is the code i'm getting a parse error on the last line of the code which /// is </html> any help will be much appreciated. <?php session_start ();
11
12413
by: Kenneth | last post by:
I have a flat file on the server which I append to from a HTML web form. I need to delete the last line of the flat file before I append though. How do i do that? I have the following code. ...
3
1785
by: ZZZupan | last post by:
http://www.naveur.navy.mil/default_test.asp I have tried with some success reorganizing the code and putting it all on one line. However for some reason I cannot get rid of the space on the last...
0
2003
by: Guyle Taber | last post by:
I'm trying to do a lookup from a table where an ID number equals a name. But in selecting from three tables, I can't seem to figure out how to display the data in the fashion I need. In the...
7
3223
by: Marco Simone | last post by:
Hi, What is your opinion about using Lookup field in table. I would like to use lookup field in table 1, so that I can choose data in combo box from table 2. Is this good design of database? ...
0
1369
by: Bob | last post by:
Background 1. I create a data table that has one primary key and one unique column with other columns as well 2. I then Bind it to my list countrol setting the DataSource to my table name and...
2
3800
by: Eric Lilja | last post by:
Hello, I'm writing a simple program that upon start-up needs to open a text file and read a value on the last line. Then all other accesses to the file will be writes (at the end of it). I'm having...
2
4434
by: punitshrivastava | last post by:
Hi to All. I am Punit Shrivastava.I am working in Asp.As i am new in this technology please help me. I want to create enquiry form in Asp. For this i code like this: <form name="enquiry"...
3
1310
by: billa856 | last post by:
Hi, This is the simple problem and I think it is the most easiest problem for experts working on this site. I made one project in MS Access. In that there is one form which i am using for data...
3
1606
by: PNY | last post by:
Hi all, I've made a form where it lists records sorted by their associated autonumber ID. The last line of this form displays a blank line with "AutoNumber" shown in its respective cell as if to...
0
7136
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
7018
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
7182
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
7232
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
7397
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...
1
4923
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3106
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1430
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.