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

SubForm issue

Hi there,
Wondering someone can thow some light to my problem Access Problem. I have upsized a Access DB to SQL and also got a Access Linked table as a front end. Relinked the linked DB to the SQL DB.
When I try to add a record to the DB using the form, the lines on the subform does not come up to enter the data. The main form lets me enter the data. The subform is for differnt table to main form.


thanks.
Sep 10 '07 #1
3 1357
Jim Doherty
897 Expert 512MB
Hi there,
Wondering someone can thow some light to my problem Access Problem. I have upsized a Access DB to SQL and also got a Access Linked table as a front end. Relinked the linked DB to the SQL DB.
When I try to add a record to the DB using the form, the lines on the subform does not come up to enter the data. The main form lets me enter the data. The subform is for differnt table to main form.


thanks.

Make sure the Primary key on any table upsized to SQL server is set. You will not be able to input data if this IS the case

Jim
Sep 10 '07 #2
Make sure the Primary key on any table upsized to SQL server is set. You will not be able to input data if this IS the case

Jim
thanks Jim for that. I did put the primary index on the tables before I upsized. It lets me update the existing records but to Add a record, I double click on a field in the main form and this should let me add in the subform as well. The following is the code it runs on double click on a field on the main form. this was running ok when the database was not upsized .

Private Sub Job_Number_DblClick(Cancel As Integer)
DoCmd.OpenQuery "New"
Me.Requery

End Sub

Anymore suggestions would be appreciated.
Sep 11 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
thanks Jim for that. I did put the primary index on the tables before I upsized. It lets me update the existing records but to Add a record, I double click on a field in the main form and this should let me add in the subform as well. The following is the code it runs on double click on a field on the main form. this was running ok when the database was not upsized .

Private Sub Job_Number_DblClick(Cancel As Integer)
DoCmd.OpenQuery "New"
Me.Requery

End Sub

Anymore suggestions would be appreciated.
Post the SQL of the query "New"
Sep 13 '07 #4

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

Similar topics

4
by: Jon McLean | last post by:
I fear that my question may be elementary, but what I am trying just is not working. I have two tables: tblContacts (Essentially a mailing list. Each contact has an Autonumber ID.)...
1
by: sixsoccer | last post by:
I have built a database with a <Mainform> and a <Subform>. My problem is twofold. 1. My subform is set as a continuos form with AllowAddiotions set to NO (ie. a list of Issues to the client on...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
1
by: phaddock4 | last post by:
Being fairly inexperienced at Access 2000, i've been reading many posts here for the last several days, and testing myself to find the best approach to do the following in A2K: SET UP: I have...
4
by: crystal | last post by:
I've checked the threads but haven't been able to come up with a solution to my issue. Help...... I have a simple form based on a table. Within the form is a subform that is also, through a Q,...
3
by: Kitana907 | last post by:
Hi- I am having issues with adding up fields in a subform. I have a form that has a subform in datasheet mode. It lists titles of books with their correlating units and dollar amount . The...
1
by: Kev | last post by:
Hello I have a form (RosterForm) based on a table - RosterRange RosterRange has 4 fields: RosterRangeID Autonumber RosterStartDate Date RosterEndDate Date (probably...
1
by: z.ghulam | last post by:
Hi, I have a subform in a main form. When I create new records in the subform I would like the Subform. to autofill with the MainForm. It sounds quite simple, but ive been bustin my brains...
5
by: z.ghulam | last post by:
Hi, I have a subform in a main form. When I create new records in the subform I would like the Subform. to autofill with the MainForm. It sounds quite simple, but ive been bustin my brains...
2
by: adigga1 | last post by:
Good Day Experts, I have an issue dealing with a subform operation whereby, each time I select the value field of the subform, that same value is then placed into the source table as a new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
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
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...

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.