Plz Help Topic "On Line Test"

Jan 1, 2008

Hi,
my access database is used in an online examination system.
In this system each student(out of 50) has 60 records stored in a perticular table.
in order to store the result of the examination each student has to update his/her records(i.e.60 records)
but whenever two students update at the same time the following error occurs



Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Could not update; currently locked by user 'admin' on machine 'SSEPL3'.
/cdt/RECORD_DELETION.asp, line 46

In line no 46 the updation process takes place

View Replies


ADVERTISEMENT

Modules & VBA :: Test String Test Based On Table Data

Oct 31, 2013

my issue is i have multilble text box in my form & based on change in one of this text box i need the code to compare between data in the form & table & returm Msg if it is not matching. attached screen FYI.

i look in the internet but i could not figuer out the VBA code since i do not know VBA. what comes to my mind to to use select case.

View 14 Replies View Related

Linking Subforms 2 Issues 1 Topic

Aug 6, 2006

I have found a lot of answers here to my multitude of questions. However, I am having two final issues. Both happen to be in my subforms.

Issue 1
I have a subform called Student addClass Subform and in the ON CLICK event of the save buttom it runs the following code

DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
[Forms]![Student_Classes_Subform].Requery

It Should requery a subform called Student_Classes_Subform which is in a main form called Students however it constantly tells me that is can't find that subform. I had this working before and made a few changes while working on issue 2 and some how messed it up and can't figured out what I did. Please Help!!!

Issue 2
In my main form called Students I have a 2 subforms that I need to link in the ON CURRENT EVENT I want to link Student_Classes_Subform to
Student ClassNTinfo Subform. Currently there is a relationship between the fields NT_ID. I assume that I need to pass a variable out of one subform to the main form and then back into my other subform. For the life of me I can't figure out how this works since the data is coming from two different tables. All of the examples I have scene pull from one table. Any help is great!

P.S. I am attaching the database and linked tables that will help where my explanation didn't.

Cheers
-andy

View 10 Replies View Related

Access Dynamically Reports Related Topic

Oct 14, 2005

Hi.
Is there a way to set the record source of a textbox control from an access report to something else then a field from a table or query ? I didn't found one.
I wanna to display in a report some processed and parsed data from a memo field (the processing and parsing is done in a function from a module). In the report, I wan't to display this data, BUT can't, because the only dinamically value that can be changed to a textbox is record source (I cannot change it's value when the reports opens), and the data processed isn't stored anywhere in a table ... so ... I'm stuck. I've also tried to display the data in report in a label (not in a textbox) and dynamically resize the label, but at some point, I riched the maximum label height :((

Is there a way to do this ???

Thanks,
Mihai.

View 1 Replies View Related

Queries :: Remove GROUP BY Line And Stick Semicolon At End Of Previous Line

Jun 25, 2013

Here's the statement

Code:

sqlfinal = "SELECT Employees.ID, Employees.Name "
sqlfinal = sqlfinal & "FROM ((qryDeptVBA INNER JOIN qrySkillVBA ON qryDeptVBA.ID = qrySkillVBA.ID) "
sqlfinal = sqlfinal & "INNER JOIN Employees ON qryDeptVBA.ID = Employees.ID) "
sqlfinal = sqlfinal & "INNER JOIN qryAreaVBA ON Employees.ID = qryAreaVBA.EmpID "
sqlfinal = sqlfinal & "GROUP BY Employees.ID, Employees.Name;"

If i simply remove the GROUP BY line and stick the semicolon at the end of the previous line (.EmpID; ) it works just fine. How is adding a group by line causing an error?I tried adding another parenthes at the beginning ((( and ending the joins as EmpID); and that failed with the exact same error.

View 12 Replies View Related

Forms :: How To Get Values From Line Items Form Inserted Into QUOTE LINE

Jun 5, 2014

I have a main form with 3 sub forms. The main form is tied to a table called QUOTES_MASTER. The first sub form is tied to a table called QUOTE_ LINE_ ITEMS_DIRTGLUE. It calculates the subtotal when selecting items. The relationship is one-to-many linked on QUOTE_ID.

The second sub form adds up total of all line items and is not tied to a table.The third sub form adds ESTIMATED FREIGHT to the PRODUCT TOTAL and is not tied to a table. how to get the values from the line items form inserted into the QUOTE_LINE_ITEMS_DIRTGLUE table as they are added.

I also want to insert the total value from ESTIMATED DELIVERED into the LINE_TOTALS field in the table QUOTES_MASTER.I tried this code on the product total sub form but it doesn't do anything and there are no errors:

Private Sub PROD_SUB_AfterUpdate()
DoCmd.RunSQL "UPDATE QUOTE_LINE_ITEMS_DIRTGLUE SET QUOTE_LINE_ITEMS_DIRTGLUE.SUBTOTAL = Me.PROD_SUB WHERE QUOTES_MASTER.QUOTE_ID = " & Me.QUOTE_ID

View 6 Replies View Related

Modules & VBA :: Read CSV Transaction File Line By Line And Add Correct Transactions To Access Table

Nov 29, 2014

I have a module which reads a CSV transaction file line by line and adds the correct transactions to an access table and places the wrong ones in a logfile.Now some transactions are rejected twice there is even one rejected six times. Whereas one wrong transaction is processed only once. I am certainly overlooking something obvious in the logic but what. Here is the relevant code.

Code:

Function ImportCSVForConfederation(inputCSV, ORG)
Dim TNO As Integer, TACT As Integer, TABLE As String, TLINE As String, I As Integer, J As Integer, K As Integer
Dim FLD1 As String, FLD2 As String, FLD3 As String, FLD4 As String, LogFile As String, LogPath As String
Dim Lim As String, ITNO As Integer

[code]....

View 8 Replies View Related

Modules & VBA :: How To Import Text File Line By Line

Nov 18, 2014

I am having a little difficulty with my importing in Access. Every time I import my text file, the lines will be jumbled. I have been reading up and I found this recordset code that seems to be what I need:

Code:
Dim strLine As String
Dim intLineNum As Integer
Dim MyDB As DAO.Database
Dim rst As DAO.Recordset
Open "C:TestTest.txt" For Input As #1
Set MyDB = CurrentDb
Set rst = MyDB.OpenRecordset("tblResults", dbOpenDynaset)
CurrentDb.Execute "DELETE * FROM tblResults", dbFailOnError 'Clear tblResults

[code]....

Basically, this code will extract data from the text file as long as it fulfills the Mid$ criteria. Here's where my problem comes. Each line in my text file is of different lengths and I have to capture the entire line.

I think using the Left$ function would work, but I don't know how to determine the character count such that the entire line of text would be inserted into the table.

Another difference between what I need and the code above is that, I am required to store each line into each row of my table, meaning

Line 1 is placed in Row 1 Column 1
Line 2 is placed in Row 2 Column 1
Line 3 is placed in Row 3 Column 1
.
.
.
Line X is placed in Row X Column 1.

View 14 Replies View Related

Forms :: No Line Only Marker In Line Graph

Oct 18, 2014

I can change multiple things on a line graph with VBA.

Me.Graph47.chartType = GraphType ' take 65 for line
with me.graph47
.SeriesCollection(1).border.Color = vbblue ' change the line color
.SeriesCollection(1).border.Weight = LineWeight ' change the line weight to for example 3
.SeriesCollection(2).MarkerSize = MarkerWeight ' Change the marker weight, for example 4
.SeriesCollection(2).MarkerBackgroundColor = vbblue ' Change the marker color,
.SeriesCollection(2).axisgroup = 2 ' put this series on the secondary axis
end with

SeriesColection(1) is line with markers. This is correct.But now I want the seriescollection(2) without line, so only the markers. I cheched the MSDN site from Microsoft. The Excel trick with the macro does not work for me.how to hide the line with VBA for only SeriesCollection(2) in Access?

View 1 Replies View Related

Test For New Employees

Jul 26, 2007

Hi Folks!

I've been asked to make a 5 questions test to evaluation potential new employees' knowledge of MS-Access. Honestly, I need your input on what to ask. The goal is not to make a very hard test, but rather to see if somebody as at least basic knowledge of SQL and Ms-Access.

Some background information of what we do with MS-Access
We use MS-Access as a central hub for different download from different systems. We make a lot of daily imports. We export queries in Ms-Excel. We open it from Access and format the report. We make hundreds of reports every day. We don't really use forms or reports.

What questions to ask?
I was thinking of having 2 questions about SQL. One simple query with a formula, and a query with 2 tables (perhaps a left join). On what should my other questions be?

View 2 Replies View Related

Test / Servey

Sep 23, 2005

Hey all, I'm trying to design a Test / Survey database.

I have posted regarding this problem before if it looks familiar to you.

Please look at the .jpg attached

I have looked at some previous survey/tests design posted on this forum and had a good table design based off of a Pat Hartman suggestion. Now i am wanting more out of the database and need more advanced options.
The main problem is how to tell which answer/OptionDetail is the correct answer for both Surveys and Tests. Maybe it would be better to separate the two? All suggestions welcomed.

Case Survey
Here is what i am trying to do. When a user decides to make a new question for a survey they will have to choose what type of question the question will be. For example say the user wants to make a survey with a answer grid question. They would choose Answer Grid from the tquestionstypeMaster combobox. Then they would have the option of choosing a type of answer grid (Satisfy3) from the tQuestionTypeOptionsMaster combo box. Say the user chose Satisfy3 then they would be presented with a list of all possible answers that the test taker would see for the Satisfy3 choice ( Very Satisfied, Somewhat Satisfied, Not Satisfied).

This is what i want as far as the survey section goes.


Case Test
A user decides to make a new question for a test they will have to choose what type of question the question will be. For example say the user wants to make a test with a Multiple Choice question. They would choose Multiple Choice from the tquestionstypeMaster combobox. Then they would have the option of choosing a type of answer grid (Single Answer, Multiple Answer) from the tQuestionTypeOptionsMaster combo box. Now comes the part where im stuck. I have to somehow get the Multiple choice selections that the test maker is entering into the tAnswers table and figure out how to tell the program to look at tAnswers insted of tQuestionTypeOptionsMasterDetails when the test taker opens up the form. I also need to figure out how to tell which multiple choice selection is the correct answer.

I hope this makes sense to everyone.


Thanks Hooks

View 1 Replies View Related

IF Statement With More Than One Test

Jul 17, 2006

I need to evaluate a string, if the string is ?-* or ???-*, then I return the string, if not I use the Left function.

I would like to do this with IIF statement in my query, or a VBA function that I could place is my query.

This is what I have so far:


VBA:

Function change()

Dim str_sku As String

If str_sku = "???-*" Then

str_sku = str_sku

Else

str_sku = Left("str_sku", 5)

End If

End Function


I get a type mismatch error. I tested on change(Function change(983-00245)

In the IIF statement, I am not able to figure out the Or part.

SKU: IIf([ITEM] Like "???-*",[ITEM],Left([ITEM],5))

Missing the "1-*" part.


Any help would be appreciated.

Thanks

View 1 Replies View Related

Password Test Box

Sep 20, 2007

How does one change the characters shown on a text box to *. For example if i enter 12345, it displays ***** in the textbox.

View 3 Replies View Related

Test For The Existence Of A File

Mar 3, 2006

If i hold a record in a table with the path and file name held in one field, is it possible to code Access 2000 to check that this file exists? I want the database to perform a certain action should it not be found.

Any help most appreciated.

Many thanks

View 2 Replies View Related

A Level Database Test Please

Apr 26, 2006

I have offered to help a local school ICT Dept with their A level projects. the first database they send me and I can't get further than the sub menus.
I would appreciate any assistance as I don't know wether it is something I am doing wrong or something within the structure. I've opened it using the Shift key to look at the code and can't see anything wrong. Any help will be very much appreciated. Regards. Bernard

View 3 Replies View Related

Database Test... Feedback?

Jun 14, 2006

Hey all,
So I'm pretty much done with this database project, but I've got a few minor snags... 3 actually.

1) get error when use delete button and select any option other than "yes"
2) my listbox selection does not load the record in the main subform area as it is supposed to (but I think I just don't know how to set this one up)
3) the frmAdd does not allow user to enter values into the fields for some reason, don't know what's up with that one

If anyone could take a peak, check it out, let me know if there is anything I need to fix, or more importantly, how to get those above things sorted out. It would be greatly appreciated. thanks in advance

View 1 Replies View Related

Age At Time Of Test Date

Mar 2, 2007

I am trying to create a field that will calculate a persons age at the time of a test date. I have the DOB field that gives for example :

3/10/1993

Then I have a field that turns this into the Age in Year and months

14 yrs 0 mos

I have a TEST Date field that tells me when they took the test:

10/1/2001

Now I need a field that will calculate how old they were at the time they took the test. I tried using this formula:

AgeAtTest([DOB], [TestDate])

but then in my field I am getting this : #Name?

It should calculate them to be: 6 yrs old at the time of the test. How can I make this happen?

Thanks!

View 3 Replies View Related

Help Wanted With System Test...

Jun 13, 2007

I'm not looking to spam anyone or sell their data but need help to test a simple market research system that i have built. I'm looking for about 25-50 people to let me send them an email inviting them to a webform to see if the "process" works correctly from start to finish.

The form asks for limited data about people but nothing that can identify them personally. Just gender, age group and postcode prefix.

Can anyone who is OK with sending me their email address to enable me to test this please send to:

mailconnection@dsl.pipex.com

Your help is greatly appreciated.

Thanks

Vince

View 8 Replies View Related

#Error And Logical Test

Dec 27, 2006

Is there a way of doing a logical test to see if a filed has a "#Error" instead of a value?

If so what is the expression and syntax?

View 3 Replies View Related

Test! I Dont Have Access And Need Help Bad Plz.

Oct 30, 2004

1.) What is the File Extension associated with Microsoft Access database files?.........MAF or MAD

2.) A Field Name may contain a maximum of ________ characters.

3.) A ____________________ determines the kind of values that users can store in a field.

4.) A Field Description is required for all data fields......T/F

5.) Use of Field Descriptions dramatically increases the size of the database and, in general, should be avoided.....T/F

6.) FirstName, PhoneNumber, and ZipCode are fields which typically include an Input Mask.......T/F

7.) A Field Name is required, but a Field Caption is optional.....T/F

8.) A 5 digit Zip Code should use this Data Type......

9.) An INDEX speeds up updates, but may slow searches and sorting on a field.......T/F

10.) A Default Value is a value that is automatically entered in a field for new records......T/F

View 5 Replies View Related

Test Score Ranges

Feb 13, 2008

Hi all

I have a bunch of student test scores. The test is scored out of 100. I want to COUNT the scores (ie I want to know how many kids scored 50 etc...). This is easy enough except the crosstab query will be very wide ie 100 columns.

I cant seem to reduce the size by grouping them into ranges (ie count the number of kids that scored between 50 and 60 in a cross tab. I've tried variations with select queries but without luck.

Maybe there is a way to code it.. and then show it on a report??

Any ideas?? Thanks

View 7 Replies View Related

How To Test If Delete Successful

Oct 18, 2013

I have some code to delete a record from a table, which does not delete the record, presumably because of referential integrity settings. That is fine of course, that's what should happen. However I want to be able to notify the user if a delete did not succeed. How can I check this? I tried this code, but it did not return an error.

Code:
strsql = "DELETE * FROM " & tblAddress & " WHERE GenAddressID = " & Me.tb_edtID
Err.Clear
CurrentDb.Execute (strsql)
If Err.Number <> 0 Then
MsgBox (Err.Description)
End If

View 6 Replies View Related

Test: Multiple Choice Template

Feb 18, 2006

Can any one do this i need it real fast let me know!!

View 5 Replies View Related

Test Incoming Files For Bytes

Apr 19, 2007

I need to add some code to our access 2002 database to test incoming files for bytes, zero byte files in particular. Our system will then pick out the zero byte files for emailing to our customers. Can someone provide code for testing for bytes or provide me some direction on this matter? Thank you!

View 7 Replies View Related

Test / Survey Table Design

Aug 25, 2005

Hey all, I'm trying to design a Test / Survey database.

Please look at the .jpg attached or download the sample database.

I have looked at some previous survey/tests design posted on this forum and had a good table design based off of a Pat Hartman suggestion. Now i am wanting more out of the database and need more advanced options.

Here is what i am trying to do. When a user decides to make a new question for a test/survey they will have to choose what type of question the question will be. For example say the user wants to make a answer grid question. They would choose Answer Grid from the tblquestionstypes combobox. Then they would have the option of choosing a type of answer grid (Dual Scale, Rating Choice, Ranking Choice) from the tblQuestionOptionTypes combo box. Say the user chose Ranking Choice then they would be presented with a list of options for the Ranking Choice. For example 5 sets of rankings, 4 sets of rankings. 3 sets of rankings. (These are just coming off of the top of my head but i think you know what i mean.)

Question, Is this close to being correct. mind you i have just started this and am just throwing ideas around.
Where could i store the correct answer for each question. Sometimes there will be a answer and sometimes there will not be an answer due to the fact that it could be a test or a survey.

Any help or suggestions would be appreciated. Thanks

View 4 Replies View Related

Forms :: Test For Null Date?

Feb 18, 2015

A form with a text box expecting a date has the validation property as, >#1/1/2010# And Is Not Null. If a date is entered older that this the error is caught however if the field is left null it is not caught as an error. I have tried several modifications of this statement with the same results.

View 3 Replies View Related







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