Datasheet From Vb Help

Dec 26, 2006

I have an access 2000 db. My users open the DB and I have it launch a simple “startup” form with various buttons for the most used features. I have one button that launches another form. The default view of the form is supposed to be in ‘datasheet’ view. However when I click the button it opens in ‘single form’ view.

What can I change on this vb code to allow it to launch in datasheet view instead of single form?



Private Sub cmd_su_checkpaid_Click()
On Error GoTo Err_cmd_su_checkpaid_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "frm_ACCOUNTING_BILLING_VER"
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_cmd_su_checkpaid_Click:
Exit Sub

Err_cmd_su_checkpaid_Click:
MsgBox Err.Description
Resume Exit_cmd_su_checkpaid_Click

End Sub

View Replies


ADVERTISEMENT

Populate A Datasheet And Extraction Of Data From Datasheet

Sep 1, 2007

Hi,

There is a requirement for
1)Populating a datasheet in a subform with a querystring which is dynamically built in VBA.This querystring is constructed based on the search criteria fields selected by the user in the main form.How can this be immplemented?

2_To click/double click a record in the datasheet,extract data and populate textfields,comboboxes with it which are in the main form.How is this achieved?Also,I can't find click events in a datasheet.

Pls let me know.
Thanks,
Savita

View 2 Replies View Related

Table Datasheet Vs Form Datasheet

Oct 4, 2004

I'm new to this.
Is there a way to make a Form Datasheet (including calculated cells) update the corresponding Table Datasheet?

View 1 Replies View Related

Autosize A Datasheet

May 11, 2005

Hey guys.

Well this is a new on for me, the idea is this.

By using a datasheet view in a subform and a custom popup menu I can allow users to filter down to the records they wish to view, in whatever order they want, and then allow them to open/edit said records with a Double-Click Event.

Fact is there are so many ways that different departments wish to filter this works in theory and in a sample I have created. A search or filter form would be huge. This seems simpler.

Ok, all good in theory, I can restrict “new” and “edit” etc, but I can just see users resizing the datasheet view to something only brain dead users could do or hiding columns. <SHUDDER>

So my question is, can or is there some why that I can use the OnOpen or OnLoad event to re-size the datasheet to a default size? (Well the fields in the datasheet mainly) This would allow you average bi-polar user to mess and re-size until their coffee mugs run out and the next user doesn’t get left a mess. (Which would then force them to ring me!) <SHUDDER>

I hope this makes sense, I really hope someone can point me in the right direction.
Have a look at the sample database attached to get a better idea of what I mean.

Thanks :)

View 1 Replies View Related

Datasheet To Word

Jul 22, 2005

Exporting datasheet to word, how is this possible using vb. Actually, I do have a thread in Form forum. But, I think not a lot of people visit that place. Anyways, I have created bookmarked and used datavariable to export the data (by ansentry's help). But the only thing that it exports is just one selection on that datasheet, instead of all the chosen rows.

I am exhausted now after searching everywhere, and not finding a clue. How to resolve that situation. If there is an example that I can use, that would be gr8.

Thanks In Adv.

View 2 Replies View Related

Datasheet Layout Changes

Oct 26, 2005

I have subforms that are datasheet view, if the user rearranges the coloumns, or resizes etc , I would like to save what they have done so it is as they left it next time they open up the screen.

This works fine with an mdb (all my forms are set to close acsaveNo).

However in an mde this doesn't work.

Can I get this to happen in and mde.

(A button that saves a layout change would be fine for my purpose)

Thanks

Paul

View 1 Replies View Related

Size Of Datasheet

Mar 16, 2008

Is there any way you can specify the size of a datasheet?

Say the datasheet opens up with 600x800 size?
or 10cm x 15cm?

View 5 Replies View Related

Datasheet Expand, Help Please!

Jan 27, 2006

HI
i never needed help this much.
i worked on an access application for 1/2 year. Everything went fine. But now we wanted to start working with it, some older acces versions are acting weird.

I have a form that contains a subform datasheet, and the datasheet has a datasheetsubform aswell.

This works fine in 2003. De datasheet is displayed, and when you click on the plus, the other datasheet opens in the maindatasheet.

But in 2000, you dont see the plusjes.
It is a major issue that i fix that! can some help me to solve this?

Joost

View 1 Replies View Related

Datasheet Backcolor

May 15, 2006

Hi,

Is there a way to set the background color of a datasheet? I don't mean the color of the cells, but the datasheet itself outside of the rows/columns as shown below (dark grey color):

http://img.photobucket.com/albums/v368/flemmo/datasheet.gif

Thanks

View 1 Replies View Related

Datasheet Subform

Jul 11, 2006

I have a form and a datasheet subform in Access. A form has person info and datasheet subform has 4 fields: QuestionID, QuestionNumber, QuestionName and Answer fields. The Answer field is a dropdown field and has 3 items: Yes, No and N/A. If QuestionNumber from 3 to 6 the answer was Yes or No then lock the Answer field in Question 7. Any idea how to do it?

View 1 Replies View Related

Datasheet View

Nov 3, 2006

when you select the Data sheet View you display error messages in the Accounts Sub reports fields.

The database has been included as a reference:
Forms- Double click Accounts Form By Discipline -data sheet view

Under Current balance,Spent, and Encumbered Columns you get error message instead of the actuall totals.

Please tell me how to correct this prolsdms

View 1 Replies View Related

Datasheet Different Than Form

Dec 27, 2006

hello,

I'm working on someone elses database, and I'm not too familiar with access.

He's got this form called Customer_Select, and when you click on a check box for a customer, it's option value is recorded in a field called Product, which then corresponds to the product/customer id located in a table called CustomerCharacteristics.

The problem is that I just realized that this Product field existed. When I view the form as a datasheet, I see the fields: Product, Lot_Nr, Version:, and Last Update:
However, when i look at the field list for the same form in Design view, I get: DateTime, VersionDisplay, and Description.

Does anyone know what's going on here? I need to reference the Product field in a query I'm modifying, but the expression builder can only 'see' the fields that are visible in design view.

Any help would be greatly appreciated.

Thanks

View 7 Replies View Related

Datasheet View

Aug 20, 2004

Is it possible to switch the view of a subform to datasheet when a command button on the mainform is selected?

I know it is something involving acFormDS...but I cant figure out the rest of the code! I appreciate your help in advance!

(P.S. I know you can right click the form and select datasheet. Unfortunately there are not many people here that are familiar with MS Access and I dont trust that they will know this)

View 1 Replies View Related

Datasheet View

Jun 18, 2007

I am reviewing a program that in datasheet view has '+' signs in the left-hand column -- it displays rows of companies. When I select a '+' another 'sub-datasheet view' of employees of that company appears, partially covering the original datasheet view of companies.
Is this the way sub-forms look in datasheet view or is something else involved?
Thanks

View 4 Replies View Related

How To Open Datasheet In A Tab

Nov 27, 2013

I'm trying to make a Navigation form for end users that can open a datasheet from a control button on another datasheet. I've got that but when you click on the control button in the first datasheet to bring up the second datasheet the second datasheet comes up like the normal datasheet view in access, not in my navigation form. Is there a way to make it come up in the navigation form? Or maybe I'm going about this the wrong way.

View 1 Replies View Related

Datasheet View In Subform

Jul 17, 2006

Hi. I am trying to create subform in datasheet view with one column (total 3)as drop down list. Is this doable? Thanks.

View 3 Replies View Related

Saving Different Datasheet Views

Sep 29, 2005

Hi, can someone tell me if there is a way to save several different datasheet views? I have a large database with many fields. I use forms for data entry, but to view the data I use the table datasheet (so I can see multiple records at a glance). But every time I have to manually move, freeze, and hide columns to get the view I want!! Is there a way to save several different datasheet layouts that I can access the view I want with one click? because I am tired of freezing/hiding columns every single time.

Many thanks

View 3 Replies View Related

Make A Datasheet Larger

Dec 8, 2005

I have copied and pasted some data into a table from Excel but Access wont let me add in any more data to the table - a notice comes up saying "The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data".

How can I add my extra information to the bottom of the table?

View 1 Replies View Related

Drop Down Menu In Datasheet

Jun 16, 2006

Hi guys

I am new to access and am finding it difficult to do some simple things.

I need to know how I can set the properties of some of the fields in a datasheet so when clicked on a drop down menu appears.

I have an add record form where on one field the user can select a number of options from a drop down menu and this is then added to the table, however on one of the following forms I have a datasheet in a subform that is set to allow edits. I want a drop down menu to appear when the user selects the field that also had a drop down menu on the add record form.

any ideas on how this can be done would be greatly appreciated lads?

cheers

View 5 Replies View Related

Counting Rows In A Datasheet

Mar 22, 2007

I have a datasheet based on a query and wish to count the number of rows in the datasheet. There is no single unique key in the datasheet, the unique number comes from a combination of two fields. How do I get the datasheet to return the total amount of rows?

Please help!

View 4 Replies View Related

Querying A Datasheet View

Apr 25, 2007

Is it possible to do a query of the datasheet view of a subform? If so, how does one go about it.

Thanks.
eileen

View 6 Replies View Related

How To Get Data From Subform As Datasheet

Jan 23, 2005

I have a form (Main) with a subform (MainSub) set as a datasheet.

The main form holds details of employees and the subform holds targets and dates for the employees.

the subform has 4 fields, Target, StartDate, EndDate, AchieveDate.

What i would like to do, is show the date of the target that was achieved last on the main form.

For example,

Joe Young has 3 aims, 2 of which are complete and 1 which is still ongoing.
Joe achieved his targets on 31/11/04 and 31/12/04.
On the main form I would like to show a control called 'LastTargetAchieved' as 31/12/04.

If I am not making myself clear I will see if I can get a sample uploaded, otherwise, thanks for any help.

View 2 Replies View Related

Changing Color In Datasheet

Feb 12, 2005

Hi.
Is that even possible? I have form in datasheet view and text box on it. I need to change color of font in dependency of value of previous record.
Maybe some kind of conditional formatting? Can somebody help?

View 1 Replies View Related

OnLoad View As Datasheet

Mar 9, 2005

hi

i have created subforms and set the Default View to Datasheet
Now i have a form where i am adding command buttons on it to load those subforms but They are not Loading it as DATASHEET VIEW.
Any Clue?

Thanks

View 5 Replies View Related

Datasheet Navigation Events?

Sep 27, 2005

Ii there such a thing as events fired by Navigation?
I have a Form displaying records in a Datasheet which has a Navigation
control and I need to be able to detect when the User selects various parts of this control.

View 1 Replies View Related

Sorting A Datasheet In A Form

Oct 7, 2005

Hi

I have a datasheet subform on an unbound form. but the data on the subform will not sort in ascending order.

I have used the ORDER BY in the table and form but it still will not do it??

Thanks

View 6 Replies View Related







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