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

SQL SERVER User Interface through ACCESS forms

Hello,

I would like to know if it is possible to create a form in Access2000,
which would function like a calendar for 8 operating rooms in
hospital, showing which hours are those closed for a specific date.
For this intersection I would like to be appeared the name of the
doctor, the name of the patient and the kind of operation.
Furthemore I would like this intersection to be marked in the calendar
with a colour, showing that this room is closed for that time.
The data for this form are going to be extracted from a table stored
in SQL Server 2000.
Generally the whole application is stored in SQL Server( stored
procedures, tables, diagrams etc.)

1)How this can be done? Is this going to be through VB or not? Can I
make a template in Excel spreadsheet put it in a form
and apply code on it?
I would like also to make forms(in Access) for user-entry data that
will use stored procedures of SQL Server with pushing the OK button.
The stored procedures would take as arguments the user-entry data from
the
forms.
I thought to make a pass-through query which would use a VB function
and would take as arguments the user's values
and after would pass these values in the stored procedures.

2)Can this be done through the pass-through query, that is Sql
Server "understands" VB or better Access pass-through query process
the VB commands before be connected with the Sql Server?
What do you think of this as an idea?
My problem is that I really don't know how to combine VB code with
Transact Sql code.
Can you give an example or any ideas where I can find the relative
information?

Thanks you in advance.
Jul 20 '05 #1
3 16861
You have two choices using access 200x:

access data project (.adp)
only supports sql server
views, sprocs, diagrams, tables are all accessible in the project as if
your were working in sql server
uses sql server security
forms, reports, etc.. are designed specifically to be used with sql
server, include sprocs with parameters

access jet database (.mdb)
supports sql server through odbc
views and tables must be linked using odbc
sprocs can be linked using pass-through queries, but unless you know
vba/ado/dao, you won't be able
to run sprocs with parameters
uses jet security unless you don't save the password with the linked
table, then it uses both.

In a nut shell, since you don't know vba and if you want to get up and
running right away I would suggest the adp format. Using jet with sql
server, especially in the case of sprocs with parameters, requires a working
knowledge of not only vba, but ado or dao also. I would add that there are
a lot of very well-seasoned jet programmers out there however, and plenty of
examples of code if you decide on jet (comp.databases.ms-access). lots of
smart people there when it comes to jet

<po*******@yahoo.com> wrote in message
news:42*************************@posting.google.co m...
Hello,

I would like to know if it is possible to create a form in Access2000,
which would function like a calendar for 8 operating rooms in
hospital, showing which hours are those closed for a specific date.
For this intersection I would like to be appeared the name of the
doctor, the name of the patient and the kind of operation.
Furthemore I would like this intersection to be marked in the calendar
with a colour, showing that this room is closed for that time.
The data for this form are going to be extracted from a table stored
in SQL Server 2000.
Generally the whole application is stored in SQL Server( stored
procedures, tables, diagrams etc.)

1)How this can be done? Is this going to be through VB or not? Can I
make a template in Excel spreadsheet put it in a form
and apply code on it?
I would like also to make forms(in Access) for user-entry data that
will use stored procedures of SQL Server with pushing the OK button.
The stored procedures would take as arguments the user-entry data from
the
forms.
I thought to make a pass-through query which would use a VB function
and would take as arguments the user's values
and after would pass these values in the stored procedures.

2)Can this be done through the pass-through query, that is Sql
Server "understands" VB or better Access pass-through query process
the VB commands before be connected with the Sql Server?
What do you think of this as an idea?
My problem is that I really don't know how to combine VB code with
Transact Sql code.
Can you give an example or any ideas where I can find the relative
information?

Thanks you in advance.

Jul 20 '05 #2

<po*******@yahoo.com> wrote in message
news:42*************************@posting.google.co m...
Hello,

I would like to know if it is possible to create a form in Access2000,
which would function like a calendar for 8 operating rooms in
hospital, showing which hours are those closed for a specific date.
For this intersection I would like to be appeared the name of the
doctor, the name of the patient and the kind of operation.
Furthemore I would like this intersection to be marked in the calendar
with a colour, showing that this room is closed for that time.
The data for this form are going to be extracted from a table stored
in SQL Server 2000.
Generally the whole application is stored in SQL Server( stored
procedures, tables, diagrams etc.)


Possible but it will require a lot of coding.
If you are not the boss GET EVERYTHING IN WRITING.
Once you get it running somebody is going to ask you for a simple method to
move operations and extend the times.
I had a similar job once in the early 80's with MSFT Basic and a DOS based
system.
The people I worked for sold the job, got a good bit of cash, then told me
about it.
I was real close when the hospital pulled the plug.

There are some visual scheduling packages out there.
Jul 20 '05 #3
po*******@yahoo.com wrote in message news:<42*************************@posting.google.c om>...
Hello,

I would like to know if it is possible to create a form in Access2000,
which would function like a calendar for 8 operating rooms in
hospital, showing which hours are those closed for a specific date.
For this intersection I would like to be appeared the name of the
doctor, the name of the patient and the kind of operation.
Furthemore I would like this intersection to be marked in the calendar
with a colour, showing that this room is closed for that time.
The data for this form are going to be extracted from a table stored
in SQL Server 2000.
Generally the whole application is stored in SQL Server( stored
procedures, tables, diagrams etc.)

1)How this can be done? Is this going to be through VB or not? Can I
make a template in Excel spreadsheet put it in a form
and apply code on it?
It'd probably be possible to get something to work from excel.
Be aware that this is one of those apps where even someone with a lot
of excel or access experience could struggle.
If you knew someone was a pro, you'd have asked em...
I would like also to make forms(in Access) for user-entry data that
will use stored procedures of SQL Server with pushing the OK button.
The stored procedures would take as arguments the user-entry data from
the
forms.
Lyle's the guy for ADP stuff...
I'd write this in vb.net rather than access if I was doing it.
By the time you mess about with all the adp stuff you may as well be
working in vb anyhow.
YMMV
I thought to make a pass-through query which would use a VB function
and would take as arguments the user's values
and after would pass these values in the stored procedures.

2)Can this be done through the pass-through query, that is Sql
Server "understands" VB or better Access pass-through query process
the VB commands before be connected with the Sql Server?
What do you think of this as an idea?
Many devs using access on sql server just use linked tables and odbc.
No stored procedures.
You could well find there is little difference in overhead that way.
Depends on your nuber of users, how dynamic the data is, security
requirements etc etc.
My problem is that I really don't know how to combine VB code with
Transact Sql code.
Can you give an example or any ideas where I can find the relative
information?
You can make an ado connection and execute T-SQL as a string or invoke
stored procedures.
Look up connection and command in help for more info....
When using access I lean more towards just connecting forms up to the
database, this'd probably mean unbound fields and hence writing code
to populate them.

On the off chance you literally meant do this in VB...
Here's a vb.net example of code to run a stored proc.
The ado bits are pretty similar to doing this from access.

Dim sconn As String = Conn_String()
Dim conn As SqlConnection = New SqlConnection(sconn)
conn.Open()
Dim cmdWrite_22 As SqlCommand = New SqlCommand("Capacity_22_Months",
conn)
Try
With cmdWrite_22
.CommandType = CommandType.StoredProcedure
.Parameters.Add("@Bucket_Rules_Id",
CStr(Me.cboBkts.SelectedValue))
i = .ExecuteNonQuery
End With
Catch ex As SqlException
MsgBox("Error: " & CStr(ex.Errors(0).Number) & " " &
ex.Errors(0).Message)
End Try
conn.Close()

Thanks you in advance.


All these are my opinions, feel free to read the faq on advice as to
how valuable these may or not be.
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
4
by: Bon | last post by:
Hello all Would it be possible to migrate the MS Access 2000 to MS SQL Server 2000? My application is using MS Access 2000 as database and as user interface such as forms. Now, I want to...
8
by: Brendan Reynolds | last post by:
I'm trying to integrate SQL Server Reporting Services reports into an ASP.NET app (SRS 2000, ASP.NET 1.1). I know how to do this using direct URL addressing, but this exposes in the query string...
11
by: Bob | last post by:
I am in the process of upgrading an Access database to SQL Server (and climbing that learning curve!). The wizard happily upgraded all the tables and I can link to them OK using ODBC. The...
5
by: B1ackwater | last post by:
We've fooled around with Access a bit, but only using the single-user store-bought version. It seems to be a good database - versatile and infinitely programmable - and can apparently be used as a...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
2
by: Wimpie van Lingen | last post by:
Hey I have some more questions with regards to Remoting in .NET 2. I'm using TCP with the Binary formatter. My solution consists of 4 projects: - Class Library containing the server classes...
0
by: Bill E. | last post by:
I will be creating an application using MS Access as a client to SQL Server 2005. Each user will have the client installed on his/her machine. Some users will be attached to the local network...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.