473,412 Members | 2,051 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,412 software developers and data experts.

forms only show primary key

Hey,

It's a Christmas Eve, but I still struggles with one problem. Hope can
get some idea from someone. Here is my question:

I have two forms, form A and formB, where form B is used to add data
into a database, let's say B_DB. when user pickup a member id on form
A, what I hope to see is on form B, the field "memberId" will show the
member Id picked on form A. and the rest of fields on form B will be
blank, where user can enter data. But the problem here is if the
"memberid" already has records in B_DB, on form B, all previous records
will show up too. I can add data using scroll bar to locate to the end
of a record. But that is really annoying. Does anyone know how to solve
it?

Thanks a lot and Merry Christmas!

Mindy

Dec 22 '05 #1
4 1502
so you put a button on form A that opens form B and passes the primary
key of the form B's underlying table...

DoCmd.OpenForm "MyFormB",,,"memberID=" & Forms!MyFormA!MemberID

Dec 22 '05 #2
Thank you. But my question is I only want primary key shows up on form
B while other fileds will be blank.

I tried two ways. If I open the form b with acformadd, form b is
blank, every field is blank.
If I open the form b with acformedit, all field are showed up . Thank
you.

Dec 23 '05 #3
I get it. I accidently used list box instead of text box in form B.
after using text box, it is ok now. Thank you.

Dec 23 '05 #4
That's what it should do.
if you open a form in *add* mode, the only field that will be set is
the primary key. The rest you have to fill in. Makes sense, right?

If you open the form in Add mode and pass the primary key, you should
get what you want.

Dec 23 '05 #5

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

Similar topics

7
by: Mark Thiel | last post by:
I am working on a project for my company, which has a structure of six major areas. Certain people need to have access to all of the data, whereas other people only require access to the...
2
by: DataB | last post by:
Hi everyone! I have a forms problem. Bakground: I have created a number of tables. Of these, I have a main parent table (Personal Details) and a number of other child tables (Tax file No.,...
2
by: joan.edington | last post by:
Hi, I've not done a lot of MS Access work and have been tasked with creating a database to record and report on stages of complaints cases. Each set of records for a case has a header, any...
3
by: travlintom | last post by:
Hi all. I have a datagrid that has several columns including the Primary Key as the first column. When I add records to the grid the Primary Key column show "Null". This would not be a...
8
by: hoofbeats95 | last post by:
I don't think this should be this complicated, but I can't figure it out. I've worked with C# for several years now, but in a web environment, not with windows form. I have a form with a query...
2
by: BBLP | last post by:
Hi, I'm sure this is a really simple thing to do but I'm fairly new to Access... I used the Wizard to create a form linked to another - this is fine and the linked form is filtered by the Primary...
2
by: banderson | last post by:
Hello, I have a data entry form for a table with information about buildings and am having a problem making a combo box do what I want. I would like to make the combo box show a list of unique bldg...
3
by: PowerLifter1450 | last post by:
Hi all, I have a form that shows student information (primary key = student ID). I have buttons on this form to bring up other forms that can be used to register student for certain events. The...
0
Shashi Sadasivan
by: Shashi Sadasivan | last post by:
Hi All, i Have an application functionaluty which has 4 forms which are needed to interact by the user by dragging data from these forms to one another the main form is located in the MDI Parent...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.