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

Simple One (form look up)

Ok I am trying to create this

2 Tables

1 form

The 1st table has Reference Number, Username, Telephone
The 2nd table has Reference Number, 2nd Telephone

Well what I would like to do is have the default value for 2nd
telephone to be telephone, the tables have reference number as primary
keys and are related via reference number too.

I am pretty sure this is a noobie question but would be very greatful
if someone could help.

Thanks
Nov 12 '05 #1
4 2877
Why 2 tables

Phil
"Danny" <da************@yahoo.co.uk> wrote in message
news:d5**************************@posting.google.c om...
Ok I am trying to create this

2 Tables

1 form

The 1st table has Reference Number, Username, Telephone
The 2nd table has Reference Number, 2nd Telephone

Well what I would like to do is have the default value for 2nd
telephone to be telephone, the tables have reference number as primary
keys and are related via reference number too.

I am pretty sure this is a noobie question but would be very greatful
if someone could help.

Thanks

Nov 12 '05 #2
Sorry maybe I was a little unclear,

The 1st table contains a reference number that cannot have duplicates,
the 2nd table can.

I actually want a form for the 2nd table where the telephone number
field is automatically filled in (but can be overwritten), after I key
in the reference number.

"Phil Stanton" <ph**@stantonfamily.co.uk> wrote in message news:<3f*********************@mercury.nildram.net> ...
Why 2 tables

Phil
"Danny" <da************@yahoo.co.uk> wrote in message
news:d5**************************@posting.google.c om...
Ok I am trying to create this

2 Tables

1 form

The 1st table has Reference Number, Username, Telephone
The 2nd table has Reference Number, 2nd Telephone

Well what I would like to do is have the default value for 2nd
telephone to be telephone, the tables have reference number as primary
keys and are related via reference number too.

I am pretty sure this is a noobie question but would be very greatful
if someone could help.

Thanks

Nov 12 '05 #3
So what you want is a primary table containing Reference Number, Username,
Telephone and a secont table linked to the first with lots of additional
phime numbers for that account

So if I'm right lets call the first table Users with
UserID Autonumber Key No duplicates
UserName Text
UserPhone Text

Lets call the second table AuxPhones
AuxPhoneID Autonumber Key No duplicates
UserID Long number
AuxPhone Text Indexed No duplicates

Create a form based on users
create a subform based on AuxPhones (the link is UserID

put the following code in the OnCurerent event of the subform

Private Sub Form_Current()

If IsNull(AuxPhone) Then
AuxPhone = Me.Parent!UserPhone
End If

End Sub
obviously you can only have 1 auxialliary phone the same as the UserPhone
otherwise duplicates will occurr

Phil

"Danny" <da************@yahoo.co.uk> wrote in message
news:d5**************************@posting.google.c om...
Sorry maybe I was a little unclear,

The 1st table contains a reference number that cannot have duplicates,
the 2nd table can.

I actually want a form for the 2nd table where the telephone number
field is automatically filled in (but can be overwritten), after I key
in the reference number.

"Phil Stanton" <ph**@stantonfamily.co.uk> wrote in message

news:<3f*********************@mercury.nildram.net> ...
Why 2 tables

Phil
"Danny" <da************@yahoo.co.uk> wrote in message
news:d5**************************@posting.google.c om...
Ok I am trying to create this

2 Tables

1 form

The 1st table has Reference Number, Username, Telephone
The 2nd table has Reference Number, 2nd Telephone

Well what I would like to do is have the default value for 2nd
telephone to be telephone, the tables have reference number as primary
keys and are related via reference number too.

I am pretty sure this is a noobie question but would be very greatful
if someone could help.

Thanks

Nov 12 '05 #4
Ray
da************@yahoo.co.uk (Danny) wrote in message news:<d5**************************@posting.google. com>...
Ok I am trying to create this

2 Tables

1 form

The 1st table has Reference Number, Username, Telephone
The 2nd table has Reference Number, 2nd Telephone

Well what I would like to do is have the default value for 2nd
telephone to be telephone, the tables have reference number as primary
keys and are related via reference number too.

I am pretty sure this is a noobie question but would be very greatful
if someone could help.

Thanks


Hello Daniel,

Do you mean that your setting up a system where the primary phone
number is in the main table and also needs to be duplicated in the
secondary table which will hold more phone numbers? Or just the
primary phone number which will be duplicated?

Regards,

Ray
Nov 12 '05 #5

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

Similar topics

3
by: Bob | last post by:
I am sure this has been answered in over whelming detail in this group, however the search results have not turned up any thing I am interested in. I want a simple form generator in PHP that...
1
by: mark leeds | last post by:
i am not a javasript programmer by any stretch but i have been writing a javascript programmer for a friend that does the following : 1) prompts the user for first name, middle name and last...
7
by: J. Hall | last post by:
Hi dudes, Got a simple webpage, with three numeric text input boxes, the idea being that the user is asked to insert percentages of their business around the world... UK, Europe, Other ...
6
by: francisco lopez | last post by:
ok , first of all sorry if my english is not so good, I do my best. here is my problem: I donīt know much javascript so I wrote a very simple one to validate a form I have on my webpage. ...
14
by: alwayshouston | last post by:
Hi All! I am working on this very small database and I am confused in the designing a simple form. I only have three tables in the database. First Table: tblExpense Columns: ExpenseID ;...
4
by: ItNerd | last post by:
Someone PLEASE HELP ME!!!!! All I want to do is a simple postback and grab the value from a textbox on clicking a linkbutton like below, but the value is not writing to the screen. I am...
0
by: Harley | last post by:
Hello, I am just learning the tcp/ip functions etc under vb.net so please look over me if this is obviouse. I have been all over looking into any functions that I didn't totaly understand and...
24
by: firstcustomer | last post by:
Hi, Firstly, I know NOTHING about Javascript I'm afraid, so I'm hoping that someone will be able to point me to a ready-made solution to my problem! A friend of mine (honest!) is wanting to...
5
by: Mike | last post by:
Hello All, Please, if anyone can point me to the problem, I'd sure appreciate it! I am very new to VB programming and not a programmer to begin with. This is part of a Visual Basic 2005 Express...
3
by: Rick Muller | last post by:
I'd like to use my webserver to distribute some simple python physics apps. Ideally, I'd like to use some simple form to input a few pieces of data, call a python program, and return some image...
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: 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: 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: 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...
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
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...

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.