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

Is it possible to save unbound Continuous subform record Using Stored procedure and V

11
Hi Eveybody,

I've a main form with a continuous subform based on 'DonorTranSmasterF' & 'DonorTranSdetailsF' ,
both tables are linked via 'DonorTransiD' field. I know & learn , How to save record Using SP & VBA
if the context of 'Unbound Continuous Subform' is it possible to save record via SP & VBA ?
Subform has two fields <'CboItemCode' and 'Txtamount'>.
(application build on A2003 ADP + Sql 2000 Srv.)
Attached Images
File Type: jpg Mainform_with_SubForm.jpg (8.5 KB, 454 views)
Mar 4 '10 #1
1 2312
Delerna
1,134 Expert 1GB
If I understand correctly
Yes, you will need to do it with VBA and you will need to add the DAO type library. To do that goto the code page of your form and go

"ToolsMenu/references"

You want to tick the "Microsoft DAO 3.6 Object Library"

Here is some sample code to help you along
Expand|Select|Wrap|Line Numbers
  1.    Dim db As Database, rst As DAO.Recordset, SQL As String
  2.    Set db = CurrentDb
  3.  
  4.    SQL = "SELECT * FROM TheTable" 
  5.    Set rst = db.OpenRecordset(SQL)
  6.    While not rst.eof
  7.       for I =1 to rst.fields.count-1
  8.           msgbox rst.fields(i)
  9.       next
  10.       rst.MoveNext
  11.    wend
  12.  
  13.    SQL = "exec TheStoredProc " & Param1 & "," & Param2 .... etc
  14.    db.execute(strsql)
  15.  
  16.    Set rst = Nothing
  17.    Set db = Nothing
  18.  
Judging from your other post I think you are capable enough to resolve your question from that.

Don't hesitate to ask for help if you need it though.
Just provide details.
Mar 4 '10 #2

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

Similar topics

3
by: Pat | last post by:
Hello, I've used Sum() to total bound fields on a continuous form with no problem. However, I now have a continuous form, on which I use an unbound field to calculate the number of hours between...
7
by: Larry | last post by:
Hi, I have unbelievable problems just to save a record! I make an input to a record in a subform, which has a temporary table as its recordsource. When I am done, and want to save the...
2
by: Simon P | last post by:
Hello group, I'm in desperate need of help. Here goes : I have the following tables : CONTACTS (ContactID, FirstName, LastName, Company, etc.), SHOWS (ShowID, ShowDescription) and SHOWDETAILS...
5
by: Armando | last post by:
I recently saw the tail end of a "Continuous forms" discussion, but not enough was available to see if this will be a PITA repeat question. Sorry if it is. On a form with its Default View...
1
by: gavo | last post by:
Hello everyone! Using A2K i have a form(a) with a subform(b) and within the subform there is a continuous subform(c). in the subform (b) there is a command button used to call a public...
20
by: Robert | last post by:
Need some help to stop me going around in circles on this one.... Have a nested subform (subform2) which simulates a continuous form for the record on the parent subform. Subform2 has rows of...
3
by: google | last post by:
I'm developing an application for use within my company in Access 2003. I'm new to '03, the application I did for my former employer was in '97. The two applications have similar functionality...
1
by: Chipperzs | last post by:
All, First time user, I tried searching for related posts but none pertaining to my specific problem. I have a form with a "Continuous" subform on it. The Continuous subform has a combo box...
4
by: EManning | last post by:
Using A2003. I've got an FE with a main form with a subform. The subform is a mixture of bound and unbound fields. The main form is unbound and all it has on it is a combobox to choose a...
2
by: EManning | last post by:
I posted a question on 5/5/08 asking how to trap an error caused by multiple users trying to access the same patient. Here's what I posted: "Using A2003. I've got an FE with a main form with a...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...

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.