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

How can I get my form to selectively include data in the table?

23
Okay, this is kind of a weird question that probably has an obvious answer. I'm making a form that allows me to enter new visits for a study that has multiple visits. For example, Study1 has visits: Day1, Day2, and Day3. I have a form called "addnewvisit" that has a combo box for Study (pulled from TblStudy) and then a textbox for Visit (going to TblVisit). The combo box lists all the studies I have entered into TblStudy, which is exactly what I want. Then I free-type the visit(s), which is also what I want. The problem is that when I click "Add New Visit," the study name gets duplicated at the end of the study list. So, in TblStudy I now have Study1, Study2, Study3, then Study1 again (autonumbers 1-4). As you can see, it generates a new autonumber for the duplicated study. The visit(s) are entered perfectly into TblVisit, though, including with a corresponding autonumber (unfortunately, it uses the duplicated autonumber - in this instance "4" instead of the original "1").

My question is: how can I have the form enter the necessary information into TblVisit without adding new information to TblStudy? I have a different form that adds the study in, and that one is now working perfectly.

Here are my Form Data properties:
Expand|Select|Wrap|Line Numbers
  1. Record Source: TblStudy
  2. Filter: *blank*
  3. Order By: *blank*
  4. Allow Filters: Yes
  5. Allow Edits: Yes
  6. Allow Deletions: Yes
  7. Allow Additions: Yes
  8. Data Entry: Yes
  9. Recordset Type: Dynaset
  10. Record Locks: No Locks
  11. Fetch Defaults: Yes
  12.  
Thanks so much for all your help, guys.
Nov 9 '07 #1
3 1295
FishVal
2,653 Expert 2GB
Hi, Ammanduh.

Looks like your form RecordSource is TblStudy and TblVisit join. Isn't it?
Nov 11 '07 #2
Amanduh
23
Hi, Ammanduh.

Looks like your form RecordSource is TblStudy and TblVisit join. Isn't it?
Hi FishVal. That's correct, sorry.
Nov 21 '07 #3
FishVal
2,653 Expert 2GB
Not a problem.
Good luck.
Nov 21 '07 #4

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

Similar topics

2
by: Glyphman | last post by:
I have a bunch of pages with long forms, with lots of input types-text, radios, textareas, and the debugging process has become overwhelming. What I need to happen is to make sure that 1. Every...
7
by: Saintor | last post by:
What I do now is I put a value in the tag property, and using the form_current event, I run through all controls properties until the ones with the required tag value are met. Sound OK in theory,...
8
by: AFN | last post by:
I want to have a routine in a page base class that will take all the text fields on a web form, and then HtmlEncode their values. I'm having trouble figuring out if I want to loop controls or...
3
scubak1w1
by: scubak1w1 | last post by:
Hello, I posted this in the HTML forum, but it was suggested I post it over here as well by a moderator. I have a form that will not 'fire' in non-IE browsers?? I have poked and poked at the code...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...
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
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.