Accessing Rows In Subform

Jun 29, 2006

Hi!

I want to access individual rows in a subform (frmOrderdetails (datasheet view)).

The reason for this is that I have a checkbox at the end of each orderline, and user will be able to check individual lines and do a return of these lines.

For now, I have a query to return lines, but the problem is that when there are two lines checked, it'll only return the first one.

Anybody that knows how to obtain this?

:-)

Thank you!

View Replies


ADVERTISEMENT

Accessing Subform

Mar 28, 2005

I have an access db and I want to access the subform on
one of my forms. Can someone help me with the syntax
to access these forms.

I tried this but it did not work.
Code:formname.variablename

View 1 Replies View Related

Problemns Accessing A Subform From A Mainform

Feb 8, 2006

Hi,

I had a text box on a main form linked to a text box on a sub form using the following control source =Forms!Form![frm_Doctors_details subform].[Form].[Title]. This was working, however I had to play around with the subform alot and now the link isn't working. All i get in the field is #name?. Nothing has changed on the subform textboxs, just that I added a primary key to assist in the linking action bewteen forms. I can't for the life of me get it back to what it was . any ideas??

Thanks in advance

View 4 Replies View Related

Subform Accessing ODBC Connection.

Feb 19, 2006

Glad I found this forum.
First question as user :)

I have a database I am creating with a number of subforms. A few of the subforms I want to be able to quere data from a ODBC connection. When I use the combobox to select a system, the subforms with ODBC connections are not updated. I will not be updating any of the data on the ODBC.

Should I just create a macro that does a delete quere and then make-table quere, or is there a better way?

thanks
brandon

View 1 Replies View Related

Stuck On Accessing Subform Control After 2 Days... Help?

Sep 23, 2005

Hi:

Have a employee timesheet application.

I have a form based on tblEmployees table, key Employeeid
Subform1 on that form based on tblWeekStartDate table, key weekstartdate and employeeid. I created 100 entries in this table for each employee so they can pick a week from combo box to enter their hours.
Subform2 within above subform1 based on tblTimeCard with key autonumber field.

When I click a button on main form I want to print preview a report of the form using EmployeeID from main form for critieria for main report and startweekdate field as critieria for subreport.

I'm unable to access the field weekstartdate from subform1 for the criteriea of the subreport query. Weekstardate is in the header of subform1.

In subreport query I'm using for weekstartdate criteria:
Forms!mainform!subform1.form!weekstartdate and query ignores it.

I also created an unbound textbox on mainform with:
=Forms!mainform!subform1.form!weekstartdate
thinking if I could get the subform1 value onto main form then the criteria in subreport query would access it but get #Name.

I did create a dialog box form where when clicking the print button on main form they can pick weekstartdate from dialog form and works fine. It does not make sense for the manager to pick a weekstartdate on the main form and then have to pick it again on dialog box.

I've attached the database. When the main form opens click on the report button.

Thanks!
Steve

View 3 Replies View Related

Accessing Subform Info From Form Button.

Jun 13, 2005

I have a form containing a subform.
Inside the form, i set up a button. Inside the OnClick code of this button, i need to access the information inside the subform.

To access the info inside the form, i know:
Me.Fieldname

But inside the subform, i have tried:
Me.SubformName.FieldName
or
SubformName.FieldName
And both did not work.

How can i?

View 2 Replies View Related

Insert Rows Into Subform Problem, Help!

Dec 8, 2006

hi i have a main form called "frmMain" that i use for users to add new studentsNumbers txtStudentsNumbers.bound to tblStudents also this form has a combo box called cmbDepartments coming from tblDepartments.

Then a subform which right now it has a combobox called cmbSubDepartments (coming from tblSubDepartments) , this combobox has a rowsource to update everytime someone selects a dept in the main form so it shows the subdepartments belonging to the departments.
Each department has a a set of Subdepartments, also has two texboxes called txtTuitionA, and txtTuitionB.
so in total i have three tables each with the pk id.



what i need is that when a user enters a student number in the main form, select the department where they want to add the student to, then the subform gets automotically populated with all the subdepartments so then the user is forced to enter TuitionA and tuition B to each subdept for that particular students

i tried this...

(in the main form)

Private Sub cmbDepartment_AfterUpdate()
Dim intQty As Integer
Dim i As Integer


If MsgBox("Are you sure you want to add a new tuition plans for this student?", vbYesNo) = vbYes Then
Me.txtStudentID = DMax("StudentID", "tblStudents") + 1 'get New student number 'Add the new row into Main Table tblStudents

intQty= me.cmbSubDepartments.itemdata -1

For i = 1 To intQty - 1
strSQL = "INSERT INTO tblStudent (StudentID, SubDepartmentID) SELECT StudentID, SubDepartmentID FROM tblSubDepartments WHERE SubDepartmentID = " & Forms!frmStudentsTuitions_subform!cmbSubDepartment s & ";"
CurrentDb.Execute strSQL


Next i

Me.frmStudentsTuitions_subform.Requery
Me.frmStudentsTuitions_subform.SetFocus



Else
DoCmd.CancelEvent 'if user choose no in question then undo
DoCmd.Close acForm, Me.Name 'close current form

End If


End Sub


but my subform does not get updated... :-( .

View 4 Replies View Related

Forms :: Limit Number Of Rows In A Subform

Jun 20, 2013

I am looking for a way to limit the number of rows that are added to the subform of a main form. Is there anyway that the allowable number of rows be defined using a field on the main form.

View 3 Replies View Related

How To Refresh Subform In Order To Display All Rows

Sep 27, 2013

I have created a form and a subform from a table.

Initially I created a table with 11 rows. After completion of my project I added an extra of 480 rows to the main table. But the newly added rows are not coming in my subform.

Attached is my project.

Main : Main table (It consists of around 491 rows)
MForm : Main Form (It shows of only 11 records which I was 1st created)

How to refresh my subform inorder to display all the rows.

View 11 Replies View Related

General :: How To Make Previous Rows Disabled In Subform

May 26, 2013

I want to disable the previous row in the subform the moment I do a new row to prevent the user from editing information other users put before. Is it possible.

View 4 Replies View Related

Modules & VBA :: Highlight Rows In A Subform Datasheet Table

Jan 25, 2015

I have a main form users enter info into then submit, which adds it to the table being displayed in the subform...

One of the options is a "Urgent" tick box, if they tick this box, once it has submitted to the table, i need that row to highlight red...

View 3 Replies View Related

Forms :: Autofill Multiple Rows From One Subform To Second Subgroup

Jul 1, 2014

So I have a master form, with multiple subforms on different tabs within the master form. This form is not used to look up data, just to only enter data in. In one of the tabs, I have a subform in the form of a data table where the person filling it in can put multiple locations of one dealership. In the next tab, I want these loctions to autofill into the next subform on the second tab in the data sheet. If I were to go with the solution of using an unbound textbox on the parent/master form to refernece the first subform and then have the second subform reference the textbox, how would I go about doing this? Just with the expression builder and conrol source? Am I able to autofill multiple rows of data from one subform to the other for one recond?

View 6 Replies View Related

Compare Several Hundred Rows Against Other Rows

Nov 21, 2005

Not sure if what I want to do is possible, or at least possible the way things are set up.

I have a massive table - c. 6 million rows. It contains data along these lines:

Plan#, Item, Price, Description, Colour, Value, Location, etc.

The primary key would be Plan# + Item. Each Plan# has approximately 1,000 Items, and there is only 1 Item per Plan#. There are only a limited number of Items (c. 1500) and all or only some Items might be assigned to the Plan#. All items under each unique ID# belong together, sort of in a set. So this huge table has approx. 6,000 unique sets (based on Plan#).

To add to the confusion, Item A under Plan#1 may have different information (Price, Description, Colour, etc.) from Item A under Plan#2. I know this isn't a great way to set up data but this is what I have to work with.

Over the years it's possible that the exact same combination of Items with identical values might have been set up for multiple Plan#s. What I need to do is find any Plan#s which have the exact same combination of Item, Price, Description, etc. So if Plan#R has 200 rows and Plan#S has 201 rows, it automatically doesn't match. If Plan#R has 200 rows and so does Plan#T, all information in each record must match between the two Plan#s (with the exception obviously of Plan#).

I don't think this is possible, and if it is I am sure it's not going to be easy. So far the best I can do is to come up with finding duplicates on Item, Price, Description, etc. but that's only one record at a time and doesn't tell me if the two Plan#s match.

Any help or suggestions would be much appreciated.

Thanks!!!

View 3 Replies View Related

Lan Accessing Problem

Jan 5, 2007

i have a strange situation with a friends network

database is on laptop, the pc downstairs can open and access the db fine, but the pc next to it upstairs can see the db but gets an error on opening - of course they are using a german version of access so im not entirely sure of the error message but its basically "cant open the db on this intranet, copy it to your pc and then open it"

all pcs are running xp and the same version of access (2002)
the db is in the laptops shared docs folder
one pc can open it fine
the pc in question can open and edit a word doc (for example) in the same folder but not the mdb
i can map the drive on the pc as well

it seems more of a win xp file permission thing but the pc can open and edit a word doc ok

the only thing (seemingly) different with the 3 pcs is that the problem pc is in english and the other 2 in german (but why that would matter i dont know)

i'm supposed to be the pc guru but this has me stumped - any ideas ?

View 12 Replies View Related

Problems Accessing A Mdb

Jan 16, 2007

Hi there

I got a little problem here. I have a mdb that must be moved to another pc, but whenever I try to open it (on the other pcs) I get the message that I don't have permission to read.
When I try to change the permissions it says that I must be an administrator to do that, but I am the pc administrator, so I guess it must be the mdb's administrator.
Does anyone know how to change the permissions, or how to make me the program's administrator/proprietary?
Thanks for your time people!

View 3 Replies View Related

Accessing The Right Database

Nov 22, 2004

I have copied a database that I used for another project for a new one. Everything is the same but when I try to use the command buttons on the form it give me "no record found" error, even though there are records in the database. I know that the Error message is the one that is writin in the database by the orginal designer, I can't quite figure out how to fix the problem I think that it has something to do with the VB coding in the comand button, becuase of the type error message that I am geting, but I don't know how to do it. I can't post the database becuase it is way to big. Everything else is working fine. What hte command button is supposed to do is update a total score percentage based off the numbers that placed in the database also any of the score can be left blank as to not count, max for each score is 5 min is zero, i.e.score1=3score2=5score3=5score4=score5=4score6=3Total Score =80.00%I hope that this makes sence.J

View 3 Replies View Related

Accessing SQL Server

Feb 25, 2005

I have time entry program that the company I work for recently purchased that uses a SQL server 2000 Back end. I can connect to the database just fine if I create a project in Access. What I need to do is take data out of a couple of the tables in the SQL Server and place them in an access table. I really don't want to add any code or tables to the Access project that I created since it seems it would add tables and queries to this products database. What would be the best way to siphon data out of this software package for my own use? This would become a daily process so it needs to be fairly automated and easy.

Thank you for your help.

View 2 Replies View Related

Accessing The Database Properties..

May 6, 2005

Ok, Let's say I go into File->Database Properties from the "main" Access screen. This brings up a window with the title "<database name> Properties" where <database name> is the same as currentproject.name.

This window has several tabs including "Summary" and "Custom." It looks like this should be stuff that I can set and then reference from within my code.

My thought is that I can use the "Title" from the "Summary" screen as a variable for all of my msgbox titles. The other interesting one is "Project" on the "Custom" tab. It looks like this may be the same sort of thing.

I've found that the Access Help is absolutely useless - I'm about ready to take a shotgun to "Clippy." But as they say, a display is a terrible thing to waste <grin>. I've also found that it's getting harder and harder to find what I'm looking for in the MSDN library. There's so much stuff and they don't always file it in logical places.

Well, thanks for reading.. sorry for the rant. As usual, any help is appreciated!

Cheers!

View 2 Replies View Related

Accessing Back End Over Network

Oct 31, 2005

Hi

I've got a back end database on one of my computers and i'm trying to get the link tables to work over a network from another computer. Ive set the link tables up but it wont let me edit any data because it is read only. Its not read only when i run the front end from the computer that stores the back end. How do i enable the front end to edit the data over the network?

also, it is a multi-user system so i want multiple front end parts accessing the one back end but whenever i try and access the data from one system when another is already open it says the file is in use and i can't do anything!

I'm really stuck at the moment and i really need some help please! :confused:

View 1 Replies View Related

Error Accessing Network

Mar 7, 2006

I am making a database and after a small amount of progress I save it and then copy and save with same name but with an extension V1, V2 etc. so that I can keep a working one as backup. Throughout this process I have come across 'Error accessing Network' connection may be lost.....! I have to go back to my previously saved version and redo the changes I was making. This time I didnt save until I was about to make my usual backup and I had quite a few changes. How can I stop this happening and make my last DB work again.

View 1 Replies View Related

Accessing Database From Front End

Mar 31, 2006

Hi there

I have an application that I run in our business.

Everytime I make changes to the code I have to export all the tables from the original into the latest version of the database with the new code.

This is a pain and makes updates time consumming and prone to error.

Is the soloution to have 2 databases. One with the tables and the other with the code (forms), & reports ect

If so, how do I access tables in the 'tables' database from the 'front end' database??

Thanks in advance

OLiver

View 3 Replies View Related

Problems Accessing Backend

Jun 6, 2006

Hi,

I have split db with the backend residing on a computer in my workgroup in the shared files folder. I have access to the folder and can view the file perfectly fine on the other computers in the workgroup (a wireless 54Mbps network). The problem I am having is that almost every time i access the backend tables from another computer in the workgroup, access freezes up and has to be shut down. Sometimes, after restarting access it works fine, others not at all.

Any suggestions or help would be greatly appreciated.

View 1 Replies View Related

Help With Accessing Toolbars And Right-clicking

Dec 5, 2006

Hi all! Hope you can help me yet again!

My company recently completed a fairly large website for a local travel-agency. The website runs on a MsSQL and .net platform, but (It is a big but(t) by the way) a pricing calculation database is a old MS Access 2000 application.

The users of this DB have MSA2000 installed on their computers, and the database is made with one application DB and connected tables.

My problem is that I have to make some small changes to this DB, but when I start it up, the toolbars is hidden and right-clicking is disabled. (F11 works).

Is there a workaround this problem?

View 1 Replies View Related

Problems Accessing Backend

May 1, 2007

Okay,

This is a bit of a weird one I hope someone can help with. I have a fairly small db that needs 3 con-current users. It is split and until recently, the backend resided on one of the computers in the shared folders directory. In this configuration it worked fine, but just recently I have set up a network using a Mac OSX server (xserve) and it is causing a bit of grief. It seems that only one user can access the backend at a time and I have tried just about everything listed in these forums with regards to permissions etc. One bizarre thing is a post here suggested I join/create a new workgroup, did that, stored on the same shared directory on the server. Every time one of the other users on the network joins the workgroup, then re-opens the frontend, they are still logged in as Admin, not the new user recently created. The folder where the workgroup file and backend reside definitely has no access restrictions. Is it something to do with the Mac environment or something else. The only way around it so far is to log 2 of the computers to the server as the same user, this sort of works.
Another weird thing is every time one of our users opens the frontend, a new workgroup file is created, system1, system2 etc. Is this normal?

Any suggestions you might have would be greatly appreciated.!!

View 2 Replies View Related

Access Accessing A SQL Backend

May 4, 2007

I have an MS-SQL backend which i use for my data source. I then use Access for reporting services. (It works so much better than SQL Reporting Services 2005).

this seems simple, but i can't get it to work. Everytime the users start up access, It pops up a login and password for the ODBC link. Even when i have the password and login setup in the ODBC DSN, it still requests it everytime you start connecting to the datasource.

Is there anyway to somehow hard code this into the Access front end somehow so i don't have to give the password to the users?

View 5 Replies View Related

Accessing Feilds In A Table

Jan 13, 2006

Ill start from the dawn of time

right all tables are like a 2d array so does any body know how i can access a field in a row of a table ie like in most languages it goes a bit like this ArrayName(1,1) with ArrayName being the name of the table and that access the first field of the first row. im new to Vba and access 2000 but all i want to do is access the fields in a column of a sub-form displayed as a table add them all up and place the answer in a text box on the main form stick all this in a function so i can run it inside a macro

q1 is this possable
q2 how do you do it

thanks in advance john

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved